Skip to content
This repository has been archived by the owner on Mar 2, 2021. It is now read-only.

[feature request] Phantom node (or fragment to be the same as react) #119

Open
richard-uk1 opened this issue Dec 24, 2019 · 1 comment
Open

Comments

@richard-uk1
Copy link

When I'm using this library, sometimes I have problems flattening all my data into a bumpalo::*::Vec to use as the children for a node. react solves this problem with fragments, a special node type that, rather than rendering an element in the dom, transparently inserts its children into the parent element at the right point.

It might make the library faster as well, since there will be less accidental re-allocations from use of bumpalo::*::Vec::push.

@fitzgen
Copy link
Owner

fitzgen commented Dec 30, 2019

If you want to work on a PR, I'm happy to review and help out, but I don't have the cycles to do this myself.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants