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

selector like feature in provider #101

Closed
sparcsaswat opened this issue May 14, 2020 · 4 comments
Closed

selector like feature in provider #101

sparcsaswat opened this issue May 14, 2020 · 4 comments

Comments

@sparcsaswat
Copy link

Is your feature request related to a problem? Please describe.
A clear and concise description of what the problem is. Ex. I'm always frustrated when [...]

Describe the solution you'd like
A clear and concise description of what you want to happen.

Describe alternatives you've considered
A clear and concise description of any alternative solutions or features you've considered.

it is a nice package. I like everything as well as your state management solution.

But in some places, we need a feature like a selector which is in the provider package, which helps unnecessary widgets rebuild.

The basic problem is that when I try to do any change in some controller is to rebuild the whole thing. But as a developer, we should not store a single value in some specific controller.
So we need that type of feature.

@sparcsaswat sparcsaswat changed the title selector like feature selector like feature in provider May 14, 2020
@jonataslaw
Copy link
Owner

Is your feature request related to a problem? Please describe.
A clear and concise description of what the problem is. Ex. I'm always frustrated when [...]

Describe the solution you'd like
A clear and concise description of what you want to happen.

Describe alternatives you've considered
A clear and concise description of any alternative solutions or features you've considered.

it is a nice package. I like everything as well as your state management solution.

But in some places, we need a feature like a selector which is in the provider package, which helps unnecessary widgets rebuild.

The basic problem is that when I try to do any change in some controller is to rebuild the whole thing. But as a developer, we should not store a single value in some specific controller.
So we need that type of feature.

With Get you can select the widget you want to rebuild, and even impose conditions for that, in addition to GetX, released yesterday, not yet documented, change the exact widget that has the variable, and have a super mega blaster minimal reconstruction algorithm, where if you have a widget that uses a variable, another that uses another, and another that uses a get adding the two, and you add a ++ in a variable, it will reconstruct only the two that were affected by the sum, however much have 300 variables that have been 'affected' but have not changed the result.
Anxious to launch GetX, GetBuilder is really good, but GetX is without taking away a revolution in intelligent state management.

@NiranjanShah
Copy link

NiranjanShah commented May 14, 2020 via email

@jonataslaw
Copy link
Owner

I think the answer was not whole, you can use the ID in the traditional Get for a refined state control.

GetBuilder (
id: 'list',

update (this, ['list']);

GetX will be released as soon as it is ready, at the moment it only has Strings, Ints and Double working, I'm trying to make it work with custom classes, Lists and Maps.

@jonataslaw
Copy link
Owner

GetX released

This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants