diff --git a/examples/prebuilt-react-integration/src/App.jsx b/examples/prebuilt-react-integration/src/App.jsx
index f46d5dce77..38a935a207 100644
--- a/examples/prebuilt-react-integration/src/App.jsx
+++ b/examples/prebuilt-react-integration/src/App.jsx
@@ -9,5 +9,16 @@ export default function App() {
return ;
}
- return ;
+ return (
+
+ );
}
diff --git a/packages/hms-video-store/src/transport/index.ts b/packages/hms-video-store/src/transport/index.ts
index 68c94c800c..0803812163 100644
--- a/packages/hms-video-store/src/transport/index.ts
+++ b/packages/hms-video-store/src/transport/index.ts
@@ -450,6 +450,7 @@ export default class HMSTransport {
}
console.log('creating peer connections');
this.createPeerConnections();
+ this.trackStates.clear();
await this.negotiateOnFirstPublish();
const streamMap = new Map();
if (localPeer.audioTrack) {