Skip to content

Performace fix#127

Merged
permafrost06 merged 8 commits intomasterfrom
performace-fix
Feb 25, 2025
Merged

Performace fix#127
permafrost06 merged 8 commits intomasterfrom
performace-fix

Conversation

@permafrost06
Copy link
Copy Markdown
Collaborator

No description provided.

The error comes from the `removeBlocks` function which doesn't return a
promise but acts like a promise.
Therefore, in dev mode, when reacts renders the component twice, the
function is called twice which fails the second time and throws
stack.shift() is null.
I have just supressed the error with a try catch and a console warning.
@permafrost06 permafrost06 merged commit ffd5972 into master Feb 25, 2025
@permafrost06 permafrost06 deleted the performace-fix branch February 25, 2025 12:59
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