-
Notifications
You must be signed in to change notification settings - Fork 2.7k
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
Fix #647 - Read store in returnPartialData mode if the previous queries failed or were cancelled #696
Conversation
@helfer I think this PR will be much better than the previous, let me know if there is anything bothering you. I also added a more complex test that actually represents a more complex flow. |
@helfer are you back ? can you review this ? |
I'll just rebase ;) |
ab12fe3
to
bdac08f
Compare
@rricard This looks great, I'll take a closer look tomorrow! |
bdac08f
to
4b84654
Compare
@rricard Thanks a lot! I think the code looks good, but I'm a bit hesitant to merge it because I'm not sure what the effects will be downstream, both in the |
That's a valid concern. However, whatever we're doing here it'll be better than crashing the app because a previous query failed or was canceled. It was literally a bug breaking our app super easily. I mean, I prefer dealing with potential bad effects created by this PR (for now we didn't got any bad effects from this in our fairly complex app) than having something that will crash often for no real reasons. |
In the same kind #724 improves a lot our general stability as well. I know that both PRs goes pretty deep but they tend to avoid a lot of hassle afterwards. |
@rricard Ok, I see. I'll see if I can merge them and release a version before we start refactoring then. |
@helfer thanks ! For the refactor, don't hesitate to ping me. I would be glad to help! |
Ok, I'll merge this now, but we'll probably refactor the logic quite a bit over the next few days. I'll release a version before we start so you can get rid of those pesky errors. |
Fixes #647
stopped
instead of deleting themTODO: