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

electric v3 mandatory wrapper div at root #74

Open
dustingetz opened this issue Nov 23, 2024 · 0 comments
Open

electric v3 mandatory wrapper div at root #74

dustingetz opened this issue Nov 23, 2024 · 0 comments

Comments

@dustingetz
Copy link
Member

Electric v3 today must own the construction of the root element for our dom position tracking algorithm to work properly. If not, e.g. we mount to document.body directly, any children elements maintained by electric-dom will have undefined order (commonly reversed).

workaround for now: don't forget a root wrapper div.

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

No branches or pull requests

1 participant