Skip to content

Tanstack React Router: add useMatches function - #2882

Open
Dominick Johnson (dmjohnsson23) wants to merge 1 commit into
JetBrains:masterfrom
dmjohnsson23:breadcrumbs-react
Open

Tanstack React Router: add useMatches function#2882
Dominick Johnson (dmjohnsson23) wants to merge 1 commit into
JetBrains:masterfrom
dmjohnsson23:breadcrumbs-react

Conversation

@dmjohnsson23

Copy link
Copy Markdown
Contributor

See #2880

Adds bindings for the useMatches function

*
* @return An array of RouteMatch objects (or selected value) for the matched route.
*/
internal /* raw */

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Missed overload without parameters?

): T =
useMatches(UseMatchesOptions(select = select))

fun <T> useMatches(

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do we need this overload?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants