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 frequently calling ref.current.setStyle on container, there's some unneccessary code executed. If we do the same but by passing property as signal and updating this signal, code works much faster.
I found that this line causes this problem: computed body runs, handlers object is created, and this effect runs, even if handlers weren't changed.
Moving handlers object creation fixes the problem:
When frequently calling ref.current.setStyle on container, there's some unneccessary code executed. If we do the same but by passing property as signal and updating this signal, code works much faster.
I found that this line causes this problem: computed body runs, handlers object is created, and this effect runs, even if handlers weren't changed.
Moving handlers object creation fixes the problem:
But I don't know if this solution is OK.
The text was updated successfully, but these errors were encountered: