Replies: 1 comment 1 reply
-
Yes, your code works.
…On Fri, 18 Feb 2022, 09:00 Ryan Baltazar, ***@***.***> wrote:
Hi is it possible to reuse a provider?
For example:
final queryProvider = StateProvider((ref)=>'');
then override it in different Routes/Page:
MaterialPageRoute(
builder: (_) => ProviderScope(
overrides: [
queryProviderDisposable.overrideWithValue(StateController('')),
],
child: const Page1(),
),
);
—
Reply to this email directly, view it on GitHub
<#1209>, or
unsubscribe
<https://github.com/notifications/unsubscribe-auth/AEZ3I3MG6FDAB7SXG4QYHTTU3X4DBANCNFSM5OXDA52Q>
.
Triage notifications on the go with GitHub Mobile for iOS
<https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675>
or Android
<https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub>.
You are receiving this because you are subscribed to this thread.Message
ID: ***@***.***>
|
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi is it possible to reuse a provider?
For example:
then override it in different Routes/Page:
Beta Was this translation helpful? Give feedback.
All reactions