FormidableLabs / FormidableLabs/spectacle
unmount slides when not displayed
Open
- Dominant language
- TypeScript
- Stars
- 10.2k
- Forks
- 700
- PR merge metrics
- No merged PRs in 30d
Description
### Description
Currently all slides remain in the DOM with display:none when not displayed & the components remain mounted. this means any slides that have components with side effects like animations will continue running, and everything starts going very sloooow.
### Proposal
Add a prop to `Deck` like `bufferRange` where the content of slides slides +/- that range are mounted in the Dom, but otherwise are unmounted.
Contributor guide
Assessment
This issue has not been assessed yet.