Skip to content

Commit

Permalink
updated depedencies
Browse files Browse the repository at this point in the history
  • Loading branch information
orl0pl committed Nov 24, 2023
1 parent 33ed1cc commit 67c5a1a
Show file tree
Hide file tree
Showing 8 changed files with 237 additions and 233 deletions.
2 changes: 1 addition & 1 deletion lib/hooks/stores.dart
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ V useStore<S extends Store, V>(V Function(S value) selector) {
useEffect(() {
return autorun((_) {
state.value = selector(store);
});
}).call;
}, []);

return state.value;
Expand Down
4 changes: 2 additions & 2 deletions lib/pages/settings/add_instance_page.dart
Original file line number Diff line number Diff line change
Expand Up @@ -40,10 +40,10 @@ class AddInstancePage extends HookWidget {
});

useEffect(() {
instanceController.addListener(debounce);
instanceController.addListener(debounce.call);

return () {
instanceController.removeListener(debounce);
instanceController.removeListener(debounce.call);
};
}, []);

Expand Down
2 changes: 1 addition & 1 deletion lib/util/observer_consumers.dart
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ class ObserverListener<T extends Store> extends HookWidget {
(_) => listener(context, store ?? context.read<T>()),
);

return disposer;
return disposer.call;
}, []);

return child;
Expand Down
Loading

0 comments on commit 67c5a1a

Please sign in to comment.