We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
rrweb-player
1.0.0-alpha.4
I expect only one player to be rendered when opening a modal in react
When opening the modal and closing it several times, the player duplicates itself
` useEffect(() => { const times: number[] = []
window.replayer = new rrwebPlayer({ target: playerRoot.current, props: { events: dataRecording.events, tags: { width: String(metadata.width), height: String(metadata.height), }, width: device === deviceType.MOBILE ? 297 : 724, height: device === deviceType.MOBILE ? 380 : 392, }, }) docs.forEach((doc: { timestamp: number }) => { times.push(doc.timestamp) })
}, [dataRecording])`
No response
I believe that Windows, being global, makes the reaction confusing and creating the player again.
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Preflight Checklist
What package is this bug report for?
rrweb-player
Version
1.0.0-alpha.4
Expected Behavior
I expect only one player to be rendered when opening a modal in react
Actual Behavior
When opening the modal and closing it several times, the player duplicates itself
Steps to Reproduce
` useEffect(() => {
const times: number[] = []
}, [dataRecording])`
Testcase Gist URL
No response
Additional Information
I believe that Windows, being global, makes the reaction confusing and creating the player again.
The text was updated successfully, but these errors were encountered: