You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/src/features/components.md
+4-4Lines changed: 4 additions & 4 deletions
Original file line number
Diff line number
Diff line change
@@ -196,8 +196,6 @@ Convert any Django view into a IDOM component by using this decorator. Compatibl
196
196
197
197
In these scenarios, you may want to rely on best-fit parsing by setting the `strict_parsing` parameter to `False`.
198
198
199
-
Note that best-fit parsing is designed to be similar to how web browsers would handle non-standard or broken HTML.
200
-
201
199
=== "components.py"
202
200
203
201
```python
@@ -216,7 +214,7 @@ Convert any Django view into a IDOM component by using this decorator. Compatibl
216
214
)
217
215
```
218
216
219
-
217
+
_Note: Best-fit parsing is designed to be similar to how web browsers would handle non-standard or broken HTML._
220
218
221
219
---
222
220
@@ -226,7 +224,7 @@ Convert any Django view into a IDOM component by using this decorator. Compatibl
226
224
227
225
Any view can be rendered within compatibility mode. However, the `transforms`, `strict_parsing`, `request`, `args`, and `kwargs` arguments do not apply to compatibility mode.
228
226
229
-
Please note that by default the iframe is unstyled, and thus won't look pretty until you add some CSS.
227
+
230
228
231
229
=== "components.py"
232
230
@@ -246,6 +244,8 @@ Convert any Django view into a IDOM component by using this decorator. Compatibl
246
244
)
247
245
```
248
246
247
+
_Note: By default the `compatibility` iframe is unstyled, and thus won't look pretty until you add some CSS._
@@ -103,7 +103,7 @@ The function you provide into this hook must return either a `Model` or `QuerySe
103
103
1. Want to use this hook to defer IO intensive tasks to be computed in the background
104
104
2. Want to to utilize `use_query` with a different ORM
105
105
106
-
... then you can disable all postprocessing behavior by modifying the `QueryOptions.postprocessor` parameter. In the example below, we will set the `postprocessor` to a function that takes one argument and returns nothing.
106
+
... then you can disable all postprocessing behavior by modifying the `QueryOptions.postprocessor` parameter. In the example below, we will set the `postprocessor` to a function that takes one argument and returns `None`.
107
107
108
108
=== "components.py"
109
109
@@ -135,7 +135,7 @@ The function you provide into this hook must return either a `Model` or `QuerySe
However, if you have deep nested trees of relational data, this may not be a desirable behavior. You may prefer to manually fetch these relational fields using a second `use_query` hook.
138
+
However, if you have deep nested trees of relational data, this may not be a desirable behavior. In these scenarios, you may prefer to manually fetch these relational fields using a second `use_query` hook.
139
139
140
140
You can disable the prefetching behavior of the default `postprocessor` (located at `django_idom.utils.django_query_postprocessor`) via the `QueryOptions.postprocessor_kwargs` parameter.
141
141
@@ -243,7 +243,7 @@ The function you provide into this hook will have no return value.
0 commit comments