Define more clear way to track properties to notify #1695
Replies: 1 comment 2 replies
-
Thanks for the example, I have the following question:
if that is the case, I think you would render optimize fine by selecting so if you return the same json structure from the backend (aka "nothing changed"), you will not re-render. If something changed (maybe just one item), it will re-render. but if something changed, it is good that we re-render, right? we want to see that on the screen, and likely the hash would also change. |
Beta Was this translation helpful? Give feedback.
-
Now we have "tracked" to automatically select options for addNotifyOnChangeProps. It helps to reduce the amount of rerenders
For example, i have such situation:
If you don't think too much about the details of this example and why I need it, the idea is mysticHash is something you need to track changes on, and content is something you need to display.
I don't have API in my mind yet, but maybe it's good idea to separate this behavior.
Beta Was this translation helpful? Give feedback.
All reactions