orenelbaum / babel-plugin-solid-undestructure

A Babel plugin for SolidJS that allows you to destructure component props without losing reactivity.
95 stars 3 forks source link

Support for nested components? #7

Closed russelgal closed 1 year ago

russelgal commented 2 years ago
const Parent: Component=({...})=>{
    const Child: Component=({...})=>{...}
}

Child not working

orenelbaum commented 2 years ago

Yeah there's no support for nested components. I usually don't use them and I find this pattern a bit weird but I will definitely will consider it and probably add support when I have more time. Also feel free to make a PR if you feel like it.

russelgal commented 1 year ago

I have no idea how to do this (

orenelbaum commented 1 year ago

Is this still relevant to you? If so I'll work on it

russelgal commented 1 year ago

thank you in advance!

orenelbaum commented 1 year ago

Thank you for using the plugin! Feature added with https://github.com/orenelbaum/babel-plugin-solid-undestructure/commit/d577bf3926c4c0d86c290efa6baf9f2d744e525a