redux-offline-examples icon indicating copy to clipboard operation
redux-offline-examples copied to clipboard

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

Open sedubois opened this issue 8 years ago • 3 comments
trafficstars

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

sedubois avatar Apr 26 '17 12:04 sedubois

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

ManAnRuck avatar Apr 26 '17 14:04 ManAnRuck

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

sedubois avatar Apr 26 '17 14:04 sedubois

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.

sedubois avatar Apr 26 '17 14:04 sedubois