Merge remote-tracking branch 'origin/next' into next
This commit is contained in:
commit
fdeb6f9512
2 changed files with 4 additions and 3 deletions
|
|
@ -477,7 +477,7 @@ where:
|
||||||
|
|
||||||
Determines whether the `m.request` can affect template rendering. Defaults to false.
|
Determines whether the `m.request` can affect template rendering. Defaults to false.
|
||||||
|
|
||||||
If this option is set to true, then the request does NOT call [`m.startComputation` / `m.endComputation`](mithril.computation.md), and therefore the completion of the request does not trigger an update of the view, even if data has been changed. This option is useful for running operations in the background (i.e. without user intervention). It's strongly recommended that you set an `initialValue` option in ALL requests if you set the `background` option to true.
|
If this option is set to true, then the request does NOT call [`m.startComputation` / `m.endComputation`](mithril.computation.md), and therefore the completion of the request does not trigger an update of the view, even if data has been changed. This option is useful for running operations in the background (i.e. without user intervention).
|
||||||
|
|
||||||
In order to force a redraw after a background request, use [`m.redraw`](mithril.redraw.md), or `m.startComputation` / `m.endComputation`.
|
In order to force a redraw after a background request, use [`m.redraw`](mithril.redraw.md), or `m.startComputation` / `m.endComputation`.
|
||||||
|
|
||||||
|
|
@ -502,7 +502,7 @@ where:
|
||||||
}
|
}
|
||||||
```
|
```
|
||||||
|
|
||||||
It's recommended that you always set an `initialValue` when setting the `background` option to true.
|
It's strongly recommended that you set an `initialValue` option in ALL requests if you set the `background` option to true.
|
||||||
|
|
||||||
- **any initialValue** (optional)
|
- **any initialValue** (optional)
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -11,6 +11,7 @@
|
||||||
},
|
},
|
||||||
"main": "mithril.js",
|
"main": "mithril.js",
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
|
"grunt": "*",
|
||||||
"grunt-cli": "*",
|
"grunt-cli": "*",
|
||||||
"grunt-contrib-copy": "*",
|
"grunt-contrib-copy": "*",
|
||||||
"grunt-contrib-uglify": "*",
|
"grunt-contrib-uglify": "*",
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue