Skip to content

feat: make the typed useNavigate hook be accessible via the returns of createFileRoute and createLazyFileRoute #1384

@SeanCassiere

Description

@SeanCassiere

Describe the bug

Following this comment on Discord, it was made evident that the typed useNavigate hook was not being returned by the Route instances returned by the createFileRoute and createLazyFileRoute functions.

As per our own documentation, the typed-hooks returned by createRoute, createLazyRoute, createFileRoute, and createLazyFileRoute, should mirror the same ones being return by getRouteApi.

Your Example Website or App

...

Steps to Reproduce the Bug or Issue

.

Expected behavior

The returned typed-hooks from the createFileRoute and createLazyRoute functions should match that of what is returned by getRouteApi.

Screenshots or Videos

No response

Platform

TSR: 1.23.1

Additional context

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions