lxsmnsyc / solid-labels

Simple, reactive labels for SolidJS
MIT License
246 stars 8 forks source link

nested $component ctf support? #15

Closed russelgal closed 1 year ago

russelgal commented 1 year ago

it looks like the nested component call is not supported

const Parent = $component(({ ...rest }): JSX.Element => {
  const Child = $component(({ ...rest }): JSX.Element => {
    return <>Child</>;
  });

  return (
    <>
      <Child />
    </>
  );
});

[plugin:solid-labels] Unexpected 'CallExpression' (Expected: Identifier | ObjectPattern | ArrayPattern) (This is an error on an internal node. Probably an internal error. Location has been estimated.)

lxsmnsyc commented 1 year ago

I've tested this myself and it seems to be working so I'm closing this.