Closed laterdayi closed 2 months ago
That is what the Watch widget is for:
@rodydavis Does this mean that all design-to-signal data parts should use the watch widget for performance reasons
If you use the createSignal/createComputed it would be like writing the most performant setState logic.
Breaking things up into smaller widgets and using the watch widget is to isolate renders closer to the UI that is actually changing.
As you can see in the figure, I only updated counter, but it triggers the build of all the widgets, which is not very good for performance, just like getbuilder obx can only update the widgets that need to trigger the update