Skip to content

Fix: Prevent infinite recursion in jumpToIndex using setTimeout (#1490)#1493

Open
AceAchyut wants to merge 1 commit intointernetarchive:masterfrom
AceAchyut:fix/recursion-bug
Open

Fix: Prevent infinite recursion in jumpToIndex using setTimeout (#1490)#1493
AceAchyut wants to merge 1 commit intointernetarchive:masterfrom
AceAchyut:fix/recursion-bug

Conversation

@AceAchyut
Copy link

I fixed the Maximum call stack size exceeded error by wrapping the recursive jumpToIndex call in a setTimeout. This allows the stack to clear between page jumps when skipping multiple limited preview pages.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant