Complain about removing context.read on Riverpod 1.0.0 #982
-
I used to pass context to logic side on my project so I can call notifiers methods inside them using the extension method "context.read" That made a good separation between UI and logic code, But now this extension method is removed on Riverpod 1.0.0 and I can't migrate from 0.14.0+3 Can anyone help? |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 3 replies
-
I found the following package on pub.dev https://pub.dev/packages/riverpod_context But I really want to use the original package to get all the good updates ^_^ |
Beta Was this translation helpful? Give feedback.
-
Why can't you migrate? You should be able to switch to ConsumerWidget and use WidgetRef.read |
Beta Was this translation helpful? Give feedback.
Why can't you migrate?
You should be able to switch to ConsumerWidget and use WidgetRef.read