-
Im working with some legacy code which does not entirely use riverpod and so I need to initialise my NotifierProvider when the widget starts watching it.
I get these suggestions: For example, maybe you could update your provider inside a button's and Future(() {...}) Is using a future the only way I can do thi? I've also seen work arounds making the widget stateful and using @OverRide |
Beta Was this translation helpful? Give feedback.
Answered by
snapsl
Aug 29, 2024
Replies: 1 comment 1 reply
-
I would suggest using a family provider to pass the card id. final state = ref.watch(cardServicesProvider(cardId)); |
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
aidanmack
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I would suggest using a family provider to pass the card id.