Laggy Performance #2079
Replies: 4 comments
-
createEffect is not exactly like react's useEffect. Returning an unsubscribe handler is not going to accomplish anything and you also need no dependency array. The idiomatic solution would be to use the map instantiated in onMount to bind the events and an onCleanup to unbind them. |
Beta Was this translation helpful? Give feedback.
-
Need a reproduction to look at what is going on here. This looks like React code with some functions renamed. And majority of the code is missing (the components). It looks like the data from the debounce function is never used for anything. You might be better served coming to the discord and talking through what you are trying to do. Or using our Github discussions where more people can look at it. |
Beta Was this translation helpful? Give feedback.
-
I'm not exactly sure what the role of the |
Beta Was this translation helpful? Give feedback.
-
Moving to a discussion. |
Beta Was this translation helpful? Give feedback.
-
Describe the bug
When I call move or zoom on the map it start to lag.
Your Example Website or App
http://localhost:3000
Steps to Reproduce the Bug or Issue
Expected behavior
Smooth experience
Screenshots or Videos
No response
Platform
Additional context
No response
Beta Was this translation helpful? Give feedback.
All reactions