0fdedc344b
`allocation.reload()` has differnt semantics for reloading, as it will reload the record in the background and immediately resolve [1]. By using the stores' findRecord and specifying `backgroundReload: false`, we make sure we await the response from the server and hereby have the complete record once we continue in the code. Using `allocation.reoad()` causes and infinite loop when we upgrade ember-data to 3.16 (and model fragments to 5.0.0-beta.2). [1] This is, unless `shouldBackgroundReload` on the adapter returns false, but it's true by default. |
||
---|---|---|
.. | ||
abilities | ||
adapters | ||
components | ||
controllers | ||
helpers | ||
initializers | ||
mixins | ||
models | ||
modifiers | ||
routes | ||
serializers | ||
services | ||
styles | ||
templates | ||
utils | ||
app.js | ||
breakpoints.js | ||
index.html | ||
router.js |