You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Currently only HTMLAnchorElements are supported for use as menu item elements with the hook. For flexibility, and as not to prescribe the implementation of the hook to developers using the package, making the ref's typing more generic but still type safe would be a warranted enhancement.
This will probably require an addition of passing generic types to the hook in order to accomplish.
The text was updated successfully, but these errors were encountered:
Actually, because Link just renders an anchor, that's mostly moot here. But here's a different use case: menu items could be used to trigger form submission (e.g., see the log out action in this Remix example: https://remix.run/docs/en/v1/tutorials/jokes#build-logout-action -- you'll need to expand jokes.tsx).
Currently only
HTMLAnchorElement
s are supported for use as menu item elements with the hook. For flexibility, and as not to prescribe the implementation of the hook to developers using the package, making the ref's typing more generic but still type safe would be a warranted enhancement.This will probably require an addition of passing generic types to the hook in order to accomplish.
The text was updated successfully, but these errors were encountered: