Skip to content

Commit

Permalink
add warning about use directive on custom components (#952)
Browse files Browse the repository at this point in the history
Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
  • Loading branch information
tennox and kodiakhq[bot] authored Dec 3, 2024
1 parent 984904b commit 3aea5a0
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/routes/reference/jsx-attributes/use.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -34,3 +34,8 @@ declare module "solid-js" {
}
}
```

<Callout type="caution" title="Limitations">
Directives only work with native HTML elements (HTML/SVG/MathML/Custom Elements).
Directives are not forwarded and **won't work in user defined components**, such as `<MyComponent use:myinput={[..]}/>` [see also](https://github.com/solidjs/solid/discussions/722)
</Callout>

0 comments on commit 3aea5a0

Please sign in to comment.