-
Notifications
You must be signed in to change notification settings - Fork 3
async reducers #3
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
Conversation
|
How wasn't this already detected by the tests? Maybe you're ought to address this too so we can prevent future regressions. Otherwise, great work 👏 |
|
@boomfly Thanks for the PR! From what I see the tests are failing and we have a potential breaking change if we want to solve this issue. @harryadel There were no async reducers in tests, that's why everything worked before. Now, back to the issue:
The problem is that in case of reactivity we probably don't want As an example, look at this https://github.com/boomfly/grapher/blob/6aa7bdd829f6bd09288ba48f1adf80395bbea069/lib/query/testing/reducers.client.test.js#L14. On line 15 What we need to do is await in recursiveFetch, but then the question is what do we do with _fetchReactive in (query|namedQuery).client.js? Option A. Option B. I'd like your thoughts on this matter @harryadel @boomfly . I can also help in the implementation of this PR if you're not confident enough @boomfly . We just need to have a clear path on what do we want to achieve. I'll also add better local testing procedure in my update/meteor-v3.0 branch |
|
You kinda outlined the possible paths here @bhunjadi. Personally, I'm all for backwards compatibility whenever it's possible so if you could find a way for the client side code to function as is while the server side becomes async I'd encourage you to go for. If not, I don't also mind changing the client side because given the spirit of 3.0, I think it's fair to pay a little price in terms of modifying the code for the upgrading your application. I think you'll have a clear idea once you get down to it and try to actually implement it. The only thing which is an absolute must for me is having tests so we can move forward more confidently regardless of the path we choose. |
|
Went with option B, closing this MR. |
No description provided.