Skip to content

Solidjs: When using lazyMount, <Portal> is always rendered #3252

Answered by segunadebayo
ylc395 asked this question in Q&A
Discussion options

You must be logged in to vote

This is a Solid.js design issue since Portal's always render a div in Solid.js. I don't see a way to make it empty.

Perhaps remove it from the DOM by hooking into the onExitComplete callback? or props.open

Replies: 2 comments 1 reply

Comment options

You must be logged in to vote
1 reply
@ivancuric
Comment options

Answer selected by ylc395
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants