Passing dynamic initial value to riverpod provider without a need to use it as a family provider #2636
Unanswered
AmrAbdelmagid
asked this question in
Q&A
Replies: 1 comment
-
hi @AmrAbdelmagid any update on this? |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I have a usecase as follow: a screen with initial filter object, this screen is used multiple times with different filter configuration, what I need to achieve is to pass an initial different filter object for each instance from this screen to notifier provider then I can change the state of this filter using the provider, I have done that using the provided code sample below but I'm wondering if I can achieve this without making the notifier scoped like that, also if don't need the provider outside the filter screen, is this a good way to do that?
Here is a full minimal code sample:
Beta Was this translation helpful? Give feedback.
All reactions