-
Notifications
You must be signed in to change notification settings - Fork 63
Conversation
🦋 Changeset detectedLatest commit: 5d27f7d The changes in this PR will be included in the next version bump. This PR includes changesets to release 2 packages
Not sure what this means? Click here to learn what changesets are. Click here if you're a maintainer who wants to add another changeset to this PR |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lgtm!
Hello, May be the following will fix the issue ` const shouldDisconnect = useRef(false);
}, []);` |
hi @merazgasalim, |
Hi @lukasIO I just upgraded I'm sure it's related to the double to reproduce the bug just update the App.tsx in example/src like that `import '@livekit/react-components/dist/index.css'; import React from 'react'; const App = () => { <React.StrictMode> <Route path="/room" element={} /> <Route path="/" element={} /> </React.StrictMode> ); }; export default App;` Here's also the stack Error |
Oh, thanks for the details! I was under the impression that we are using strict mode by default since we upgraded to react v18. will take a look and open a new issue for this |
I think that I found the issue! I updated the useEffect return like that and the bug is fixed
|
Hi, @merazgasalim, I'm having the issue with Livekit not disconnecting when my component unmounts even though I'm trying to force it by calling the disconnect function inside the unmount of the useEffect hook:
Versions
|
No description provided.