I am using react-apollo and creating an app that needs to sync the entire local data store of the application once every X seconds.
So essentially, imagine <input1 />
and <input2 />
both need to be synced to the server periodically.
<App>
<input1 />
<input2 />
</App>
- Which component should GraphQL wrap in order to achieve the sync?
- Is it possible to use a graphql mutation in a redux action so that the mutation can occur upon the dispatch of an action?