Accessing previous state within StateProvider. #1790
TreyThomas93
started this conversation in
General
Replies: 2 comments 1 reply
-
The error sounds like you didn't specify the generic type for your provider. Do: final provider = STateProvider<T>(...); not: final provider = STateProvider(...); |
Beta Was this translation helpful? Give feedback.
1 reply
-
Support similar request for |
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 was wondering if there was a way to access the previous state when calling a StateProvider. I attempt to use ref.controller.state, but I end up with a The type of 'StateProvider' cannot be inferred because it depends on itself through the cycle: [StateProvider] error.
Beta Was this translation helpful? Give feedback.
All reactions