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
{{ message }}
This repository has been archived by the owner on Aug 6, 2023. It is now read-only.
Apollo Client 3 for React Native uses apollo-cache-persist as it's persistence layer. However, current implementation of ReactVars handles storage outside of the cache, hence persisting ReactiveVars does not function as expected.
A recent issue points out ReactiveVars are not being persisted. However, this PR seems to address the issue pointed out by the mentioned issue, and suggests a workaround for persisting ReactiveVars. Until official support for persisting ReactiveVars is merged, local fields as mentioned here, is a viable option.
Keeping this issue open until there is a stable solution.
Add support for
useReactiveVar
and removeuseQuery
hook for component level updates. This update needs to done withapollo-client 3.2.0
.Reference: PR
The text was updated successfully, but these errors were encountered: