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

StateNotifierProvider.value doesn't handle LocatorMixin #70

Open
jaumard opened this issue Dec 14, 2022 · 0 comments
Open

StateNotifierProvider.value doesn't handle LocatorMixin #70

jaumard opened this issue Dec 14, 2022 · 0 comments
Assignees
Labels
bug Something isn't working

Comments

@jaumard
Copy link

jaumard commented Dec 14, 2022

Describe the bug
By using this:

StateNotifierProvider<BalanceStore, BalanceState>(create: (_) => BalanceStore()),

I can use read methods of locatorMixin.

But using:

StateNotifierProvider<BalanceStore, BalanceState>.value(balanceStore),

Then read crash with not found dependency.

By reading the source look like one is setting (value as LocatorMixin)..read = _contextToLocator(context) but it is not done on the other case.

@jaumard jaumard added the bug Something isn't working label Dec 14, 2022
@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
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants