FormidableLabs / FormidableLabs/spectacle

unmount slides when not displayed

Open
#1,022 6 comments 1 reaction 0 assignees View on GitHub
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

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.