From fbf36673a0dd3ca893dabe85deb3856c6afbb984 Mon Sep 17 00:00:00 2001 From: Matthew Jaoudi Date: Mon, 13 Nov 2023 16:07:08 -0800 Subject: [PATCH] fix: #138, have vsync override reference container --- packages/jaspr_riverpod/lib/src/framework.dart | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/packages/jaspr_riverpod/lib/src/framework.dart b/packages/jaspr_riverpod/lib/src/framework.dart index b7a11abae..eae3f2924 100644 --- a/packages/jaspr_riverpod/lib/src/framework.dart +++ b/packages/jaspr_riverpod/lib/src/framework.dart @@ -314,7 +314,7 @@ class _UncontrolledProviderScopeElement extends InheritedElement { debugCanModifyProviders ??= _debugCanModifyProviders; } - vsyncOverride ??= _jasprVsync; + component.container.vsyncOverride ??= _jasprVsync; super.mount(parent, prevSibling); } @@ -370,8 +370,8 @@ class _UncontrolledProviderScopeElement extends InheritedElement { debugCanModifyProviders = null; } - if (vsyncOverride == _jasprVsync) { - vsyncOverride = null; + if (component.container.vsyncOverride == _jasprVsync) { + component.container.vsyncOverride = null; } super.unmount(); }