Skip to content

InertiaJS - Unable to pass link props #5114

@francoism90

Description

@francoism90

Package

v4.x

Description

For Inertia.js it may be needed to set additional link props, these include 'reset', 'only', state and scroll remembering, etc.

I have tried adding props to NavigationLinkItem and also Link, but they don't seem to be passed. Would it be possible to add something like to: '/books', { props: { reset: ['items'] } }, or is this already possible? It seems Inertia.js sets them in the HTML as is, and doesn't need anything other special (please correct me if I'm wrong).

Thanks!

Additional context

Inertiajs (Laravel) support is enabled in my config.

https://inertiajs.com/links - this lists the supported props by them. I can use it directly, but unfortunately with components it's more difficult.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or requesttriageAwaiting initial review and prioritizationv3#1289

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions