mirror of
https://github.com/kemko/nomad.git
synced 2026-01-08 03:15:42 +03:00
`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.