In order for fetch to be awaitable, the forceFetch promise must be
up to date. This wasn't the case before this commit: observe triggered
a forceFetch without sharing its promise. In this case, fetch
couldn't return the forceFetch promise which resulted in desync: the
store state was "pending" but fetch didn't return a promise.
Fixes this by saving the forceFetch promise in observe (the same way
it was already done in fetch).
In order for
fetch
to be awaitable, theforceFetch
promise must be up to date. This wasn't the case before this commit:observe
triggered aforceFetch
without sharing its promise. In this case,fetch
couldn't return theforceFetch
promise which resulted in desync: the store state was "pending" butfetch
didn't return a promise.Fixes this by saving the
forceFetch
promise inobserve
(the same way it was already done infetch
).