Skip to content
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

WIP: Allow to use 'cache-and-network' fetch policy with suspense #15

Closed
wants to merge 1 commit into from

Conversation

trojanowski
Copy link
Owner

Closes #13

@trojanowski trojanowski changed the title Allow to use 'cache-and-network' fetch policy with suspense WIP: Allow to use 'cache-and-network' fetch policy with suspense Nov 10, 2018
@trojanowski
Copy link
Owner Author

trojanowski commented Nov 10, 2018

It tries to solve #13 by emulating the cache-and-network policy by using the default cache-first one and then optionally forcing a refetch. The problem with that implementation is that the refetch is also invoked the first time the page is loading.

@trojanowski
Copy link
Owner Author

I'm closing it - it's an outdated implementation. I'll try to create a new one when Suspense for data fetching is considered ready by the React team - maybe it'll be easier and less hacky then.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant