flutter_hooks + signal_hook + store (how to?) #407
Unanswered
prf-alissonprimo
asked this question in
Q&A
Replies: 1 comment
-
That's another way that worked, but I still don't know if it's a good practice. Since I come from Angular it seems a little bit odd.
|
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
I’m using Flutter Hooks with Signal Hooks, and I organize my app with one store per feature. Inside my widgets, I use useExistingSignal to import read-only signals from the store, and useComputed to filter the data.
The issue I’m encountering is that when I create another useComputed based on an existing useComputed, it doesn’t react as expected—the dependent data doesn’t update properly.
Store
Widget
That's the only way I could make it work... But when I use "contextoConsulta" in "restricoes" and "isCardLoading" it does not work.
Beta Was this translation helpful? Give feedback.
All reactions