-
Notifications
You must be signed in to change notification settings - Fork 11
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
shouldComponentFetch in container #22
Comments
What do you mean by "spend time updating its invisible UI"? If it's just re-rendering time, wouldn't that better be handled by |
Yes, I actually agree, the problem in my case was that the fetched result was always a new reference, due to |
That's really interesting. I'm not using immutable right now, but is there no straightforward pure render alternative for that use case? Alternatively, why not just put that |
Yes, that is certainly possible, but ideally I do not want the wrapped component to know about that particular prop. Then, I could make a wrapper that wraps the wrapped component, that only does the |
I think it would be useful to have a
shouldComponentFetch
method in container, in order to control if the component should update. For example, if a modal is open, I might not want the underlying UI to spend time updating its invisible UI until the modal closes. Right now, I've achieved this with quite an ugly hack.The text was updated successfully, but these errors were encountered: