-
Notifications
You must be signed in to change notification settings - Fork 787
Conversation
@machard: Thank you for submitting a pull request! Before we can merge it, you'll need to sign the Meteor Contributor Agreement here: https://contribute.meteor.com/ |
I think we need to start with your issue/PR against AC and figure out if |
(If we do my approach then no PR to RA will be necessary). |
ok, so i did the AC pr in your repo :) |
Ok so I digged a little bit more. As of now on master:
I didn't find a proper solution for apollographql/apollo-client#960. So I updated this PR with switching the subscribe/unsubscribe behavior of the skip option to set/unset noFetch to at least have a workaround for 1) and 2). tell me what you thing @tmeasday |
@machard I still don't really know if I understand what this PR is trying to do. I think it would make sense to include a failing test in any case. |
I still think that some version of apollographql/apollo-client#960 is the way to go here |
hehe I was trying to fix 2 problems i noticed:
This PR is now just a workaround to quickly fix both my issues without needing to change AC. |
Let's take a look at that once the AC issue is resolved |
@machard is this still relevant now? If just part of it is, then I would suggest opening a new PR. |
@helfer yes i am going to make the pr for "when skip goes from true to false, the component is rerendered without any data" this week. i guess you can close this one :) |
@helfer |
When skip is true, then switch back to false, if we call resetStore, it will run the query.
This fix propose to tearDown the queryObservable instead of just unsubscribing.
The queryObservable is already recreated if it's missing
Need apollographql/apollo-client#960
see #289 (comment)