Skip to content

Commit

Permalink
fix: schultek#138, have vsync override reference container
Browse files Browse the repository at this point in the history
  • Loading branch information
gadfly361 committed Nov 14, 2023
1 parent 3495cfd commit fbf3667
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions packages/jaspr_riverpod/lib/src/framework.dart
Original file line number Diff line number Diff line change
Expand Up @@ -314,7 +314,7 @@ class _UncontrolledProviderScopeElement extends InheritedElement {
debugCanModifyProviders ??= _debugCanModifyProviders;
}

vsyncOverride ??= _jasprVsync;
component.container.vsyncOverride ??= _jasprVsync;
super.mount(parent, prevSibling);
}

Expand Down Expand Up @@ -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();
}
Expand Down

0 comments on commit fbf3667

Please sign in to comment.