(also posted in github zoom/videosdk-ui-toolkit-web issue #97.
Please go there for links and screenshots since this forum does not allow me to add them
)
The onSessionDestroyed callback can not be unregistered, there is no offSessionDestroyed API in the uitoolkit SDK. While similar functions exist for join and close session event: offSessionJoined and offSessionClosed.
This causes the callback to be called twice the second time the uitoolkit is used, 3 times the third, and so on.
Applies all UI toolkit SDK releases (latest checked is version 2.3.0-2).
This memory leak can be easily observed in the zoom/videosdk-ui-toolkit-react-sample app, see screenshot:
- removed screenshot
I have also created a test app based on nextjs to document bugs that are impacting our deployment, ref to github ercaronte/videosdk-ui-toolkit-nextjs-sample.
You can observe the same behavior there as well, see screenshot:
- removed screenshot