Skip to content
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

add "selector" parameter to ProxyProvider so state is only recreated when specific variable has changed #812

Open
tylandercasper opened this issue Apr 7, 2023 · 0 comments
Assignees
Labels
enhancement New feature or request

Comments

@tylandercasper
Copy link

Identical request to #764
But he closed it as being to niche, so I wanted to say I would also like this feature.

Is your feature request related to a problem? Please describe.
Basically if ANY value on a base provider changes, than state is rebuilt for ALL proxies that depend on it.

It would be really nice if we could add a filter to the proxy to only recreate if a specific variable was changed.

One of the things I really liked about provider is that the select method allows you to optimize tree-rebuilding based only on what you actually need as opposed to the shotgun style setState({}) a lot of the other ones use.
Not having a similar filter for the providers seems like a missing link to that.

@tylandercasper tylandercasper added enhancement New feature or request needs triage labels Apr 7, 2023
@rrousselGit rrousselGit self-assigned this May 10, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants