Skip to content

Migrating from Watch to SignalsMixin in the Signals Package #326

Closed Answered by rodydavis
Gianluca-Altieri asked this question in Q&A
Discussion options

You must be logged in to vote

For context I am needing to remove quite a few legacy extension methods that were a mix of the behavior and DX that I was aiming for.

With SignalsMixin it completely encapsulates the signals to the widget and automatically rebuild and dispose each signal as needed. The Watch widget now uses the SignalsMixin internally too.

I choose not to deprecate the .watch() extension as I think there is a lot of value still for stateless widgets but using the Watch widget is preferred since it will clean up faster and allows for surgical rendering.

The SignalsMixin is only needed if you want the auto rebuilding widgets since you can still use regular signals and the Watch widget in the build method. T…

Replies: 1 comment 6 replies

Comment options

You must be logged in to vote
6 replies
@Gianluca-Altieri
Comment options

@rodydavis
Comment options

@Gianluca-Altieri
Comment options

@Solido
Comment options

@Gianluca-Altieri
Comment options

Answer selected by Gianluca-Altieri
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants