You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When I'm reading the docs about ListenableServiceMixin, there something that make me confuse about the use of listenToReactiveValue. Because in the example from stacked repo, there's no use of listenToReactiveValue in it. Then I ask AI to explain it to me, got this summary:
Manual Notification: Use regular variables (like int, String, List, etc.). With this approach, you have the full responsibility to call notifyListeners() whenever you change a value that the UI needs to know about.
Automatic Notification: Use ReactiveValue<T> for your variables. By passing these variables to listenToReactiveValues in your service's constructor, the framework handles calling notifyListeners() for you automatically whenever the .value of the ReactiveValue is changed.
Can you tell me that this summary is true or just stick with whats in the documentation?
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
-
When I'm reading the docs about
ListenableServiceMixin
, there something that make me confuse about the use oflistenToReactiveValue
. Because in the example fromstacked
repo, there's no use oflistenToReactiveValue
in it. Then I ask AI to explain it to me, got this summary:notifyListeners()
whenever you change a value that the UI needs to know about.ReactiveValue<T>
for your variables. By passing these variables tolistenToReactiveValues
in your service's constructor, the framework handles calling notifyListeners() for you automatically whenever the.value
of theReactiveValue
is changed.Can you tell me that this summary is true or just stick with whats in the documentation?
Manual Notification
Automatic Notification
Beta Was this translation helpful? Give feedback.
All reactions