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
As part of this, we should have the direct cache access methods accessible on the client with rebroadcasting capacity. Thus consolidating that part of #176 here as well
I was pretty wrong here – maybeRebroadcastQueries was already called every time a result was added. Added clearer docstrings to avoid making this mistake again
4.0.0-alpha.7 adds cache access methods to the client that handle rebroadcasting, closing this entirely.
Right now
cache.writeQuery
flags the cache for rebroadcast, but the only timemaybeRebroadcastQueries
is inmutate
Also, this docstring is wrong, I believe because I didn't want to needlessly rebroadcast. Need to re-investigate:
https://github.com/zino-app/graphql-flutter/blob/7192c1669c7dbecff0bbcd0665522c5b41207ab2/packages/graphql/lib/src/core/query_manager.dart#L282
We should either
maybeRebroadcastQueries
at the end of every query and cache write, or it should be somehow configurable via arebroadcastPolicy
Consolidating #647 and #587 here
The text was updated successfully, but these errors were encountered: