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

Fix: Possible fix for #13 - Node re-creation on the native side #14

Merged
merged 8 commits into from
Oct 28, 2022

Conversation

barelyhuman
Copy link
Owner

on each child node tree there's a new recreate method which get's fired everytime something is removed, since
react native also removes it's existence from the native side causing re- mounting errors

fix: #13

Problem with the hack is that it might add quite a large tree of re-creation even something huge is deleted from, for example if the entire screen is re-created in the background, this adds a lot of overhead on the queue and might slow down the app.

The other option is to add display:none to the removed node instead of completely removing it from the screen and then enabling the display when an append / create call for the same node is made again.

on each child node tree there's a new recreate method which get's fired
everytime something is removed, since
react native also removes it's existence from the native side causing re-
mounting errors
hack to avoid colliding tags with react native
@codesandbox-ci
Copy link

codesandbox-ci bot commented Oct 27, 2022

This pull request is automatically built and testable in CodeSandbox.

To see build info of the built libraries, click here or the icon next to each commit SHA.

Latest deployment of this branch, based on commit 524eb2b:

Sandbox Source
Vanilla Configuration

@barelyhuman barelyhuman merged commit f40715c into main Oct 28, 2022
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.

root-view removal while changing the direct child
1 participant