You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Error: when trying to destroy() the reveal instance within React (per documentation)
Reveal.js destroy call failed. TypeError: Cannot read properties of undefined (reading 'forEach')
at eval (reveal.esm.js:8:61023)
at Array.forEach (<anonymous>)
at M.unbind (reveal.esm.js:8:60987)
at Se (reveal.esm.js:8:83644)
at Object.destroy (reveal.esm.js:8:100765)
at eval (RevealApp.jsx:95:31)
at safelyCallDestroy (react-dom.development.js:22932:1)
at commitHookEffectListUnmount (react-dom.development.js:23100:1)
at invokePassiveEffectUnmountInDEV (react-dom.development.js:25207:1)
at invokeEffectsInDev (react-dom.development.js:27351:1)
Sidenote, in your example you shouldn't need to call revealRef.current.layout(). Your call to revealRef.current.sync() already triggers a layout so it's being called twice.
Many thanks. I'm rendering new async slides into reveal, and they were all
showing up stacked on top of each other - I was trying sync/layout and
anything else. What worked is setting a specific move to slide().
Error: when trying to destroy() the reveal instance within React (per documentation)
Initialize & Return, per https://revealjs.com/react/
The text was updated successfully, but these errors were encountered: