-
-
Notifications
You must be signed in to change notification settings - Fork 15
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
react-relay-offline useRestore & state reconciliation #33
Comments
If there is a non-nullable field in the query and it doesn't exist, will the application crash? |
Hi @w01fgang, |
hi @bglgwyng, Thanks for the tip 💯 |
I completely agree that the addition of this feature requires careful consideration. |
Example of what happens when using the useQuery/QueryRenderer without useRestore:
Example of what happens when using the useQuery/QueryRenderer with useRestore:
Example of what happens when you use the useQuery/QueryRenderer without useRestore in SSR applications:
In applications with SSR the useRestore should never be used
With the proposed change in relay-hooks, it will be possible to avoid using the useRestore as it will always be possible to perform a forced execution of the QueryFetcher.
The text was updated successfully, but these errors were encountered: