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

v11 ability to specify render() order in parentNode's children #3542

Closed
Colisan opened this issue May 12, 2022 · 2 comments
Closed

v11 ability to specify render() order in parentNode's children #3542

Colisan opened this issue May 12, 2022 · 2 comments

Comments

@Colisan
Copy link

Colisan commented May 12, 2022

Hi, in the current documentation it's written that

The replaceNode-argument will be removed with Preact v11

But no replacement is specified. What is the new way to tell, for example "render this vnode between the 4th and the 5th child of this parent dom element"? I don't see any parameter to render() that currently allow such a configuration.

If already determined, can we add this information into the documentation?

@danielweck
Copy link

Try this :)

https://gist.github.com/developit/f4c67a2ede71dc2fab7f357f39cff28c

@developit
Copy link
Member

Heh, thanks @danielweck as always :)

We'll include a nice guide and shim library based on that gist with the 11 launch.

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

No branches or pull requests

4 participants