Skip to content

Re-mount and children in solid-js #1150

Discussion options

You must be logged in to vote
  1. For sure.. <Show> doubles as this when you use the callback form

const UserWidget = () => {
// ...
const userData = useUserData({userId});
// ...

return {userData => }
}

Remember to pass the argument through so Show can differentiate it as a callback from an accessor.

  1. Yeah.. The array handling is something I want to improve to force always array as a single child isn't an array.

Regardless this thread is probably relevant: #1141

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Answer selected by AntonyKarachanskySS
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