redux-offline-examples
redux-offline-examples copied to clipboard
apollo example: tab with older data doesn't get new todos
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):
If I open a private browsing session in same browser, then I see all the 4 todos that there are currently in this demo:
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
OK great. Maybe a question to ask in redux-offline?
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.