Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Too much rendering #3

Closed
jjjkkkjjj opened this issue Jun 19, 2024 · 1 comment
Closed

Too much rendering #3

jjjkkkjjj opened this issue Jun 19, 2024 · 1 comment
Labels
enhancement New feature or request

Comments

@jjjkkkjjj
Copy link
Owner

jjjkkkjjj commented Jun 19, 2024

Due to updating the droppableInformation and draggableInformation in each DnDable, the rendering was occurred for every updating.

@jjjkkkjjj
Copy link
Owner Author

jjjkkkjjj commented Jun 19, 2024

Solution

  1. receive keyValues in the DnDArea
  2. manage whether registration is accepted from DnDable based on the received keyValues (registerInformationAtom)
  3. synchronize the Lazy atom with the Realtime atom if registerInformationAtom is all true
  4. set allRegisteredOnce to true once all the information has been collected
  5. then synchronize Realtime and Lazy by calling updateLazyStates when the State is updated

@jjjkkkjjj jjjkkkjjj added the enhancement New feature or request label Jun 19, 2024
@jjjkkkjjj jjjkkkjjj pinned this issue Jun 19, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant