-
Notifications
You must be signed in to change notification settings - Fork 65
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
Pattern for sequential dependent requests #73
Comments
@rogovdm Hmm. What is the problem you're trying to avoid by not having these props passed down to your component? |
|
Yeah that's what I figured. Makes sense. What do you think about a new option for |
I am writing my app which uses Where my mind goesFor me I feel like connectRequest should also have... Duplicating selectorsThere will be shared data between selected data for a component and selected data for requests. I believe there will be shared pool of data in most cases. But I am okay with that duplication in favor of separating of concerns. We can always put shared data into And memoization will solve the rest of the problems. This is what I am thinking about. Mm? |
@rogovdm I see where you're coming from and the use cases. What would be the new signature for Other alternatives:
I'm personally leaning towards option 1. |
I am deciding to close this issue. I am resistant to investing any more into the connectRequest HOC by making that API more complicated. I do think that this won't be as much of an issue if you start using our new hooks API when that becomes available (see #129). |
The case
Done 😸
Solution (so-so one)
It would be ideal to see all requests for a component in one place — in
connectRequest
hoc.What I came up is some idea like this:
What I don't like
While it's seems quite nice, but we pollute our
prop
property with data not specific for views. Best I can do now is to use another HOC to remove redux-query specific props later in composition.?
Your thoughts?
The text was updated successfully, but these errors were encountered: