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
It seems more idiomatic Redux, and thus better supported by 3rd party redux tools which operate at the level of middleware/dispatched actions, to dispatch network requests in a middleware.
cc @calebmer Let's keep this in mind while we rethink the store architecture. If possible, it would be nice if our Redux integration could provide this.
It seems more idiomatic Redux, and thus better supported by 3rd party redux tools which operate at the level of middleware/dispatched actions, to dispatch network requests in a middleware.
Discussions:
redux-action-buffer
to buffer initial events while restoring the storeThe basic proposal is rather than
client.watchQuery().subscribe()
callinga.
QueryManager#fetchRequestOverInterface
, whichi. Dispatches
APOLLO_QUERY_INIT
, thenii. Fires a network request, which after returning
iii. Dispatches
APOLLO_QUERY_RESULTS
We should try
client.watchQuery().subscribe()
callsa.
QueryManager#fetchRequestOverInterface
, whichi. Dispatches a thunk, which does i-iii. above.
Alternatively some other mechanism could be used to fire the request, via the client's middleware.
The text was updated successfully, but these errors were encountered: