Skip to content
This repository has been archived by the owner on Apr 8, 2024. It is now read-only.

perf(plugin): prevent infinite loop on mobile #361

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

keiya01
Copy link
Contributor

@keiya01 keiya01 commented Mar 28, 2023

I fixed infinite loop on mobile.
If dataset has switch dataset field, this will cause infinite loop.

The reason of infinite loop is we couldn't synch dataset between sidebar and popup.
We have same logic on PC too, but the project state is in same runtime on PC, so the project is managed by React.
On the other hand, the project is in different runtime on mobile. We have two the project state on sidebar and popup.
That is, these state aren't synched by React, so we need to manage these state manually.

@keiya01 keiya01 self-assigned this Mar 28, 2023
@keiya01 keiya01 changed the title perf(plugin): prevent infinite loop perf(plugin): prevent infinite loop on mobile Mar 28, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant