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

apollo example: tab with older data doesn't get new todos #2

Open
sedubois opened this issue Apr 26, 2017 · 3 comments
Open

apollo example: tab with older data doesn't get new todos #2

sedubois opened this issue Apr 26, 2017 · 3 comments

Comments

@sedubois
Copy link

sedubois commented Apr 26, 2017

For some reason as I was checking https://apollo-web-lohecdnuxh.now.sh (in parallel between my phone and my laptop and temporarily adding todos from phone while offline), my laptop browser gets stuck seeing old data (only 2 todos visible):

screen shot 2017-04-26 at 15 26 47

If I open a private browsing session in same browser, then I see all the 4 todos that there are currently in this demo:

screen shot 2017-04-26 at 15 27 28

@ManAnRuck
Copy link
Owner

ManAnRuck commented Apr 26, 2017

it should be fixed now. I add the fetchPolixy "network-only" for the "effect" query. but I don't know if it is the best solution

@sedubois
Copy link
Author

OK great. Maybe a question to ask in redux-offline?

@sedubois
Copy link
Author

Looks good :) will test some more for other potential bugs when I have a chance.
I think with some cleanup this could be a pretty great example to share ;-)
Could be linked from redux-offline repo and tweeted mentioning that it uses @apollographql, @jevakallio's redux-offline, @graphcool etc.
I'd also be super interested to see this working with Next.js instead of create-react-app.

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

No branches or pull requests

2 participants