Skip to content

feat: add useRouter hook for manual route visits in React and Vue#42

Merged
Julien-R44 merged 3 commits into
Julien-R44:mainfrom
7nohe:feat/manual-visits
Feb 20, 2025
Merged

feat: add useRouter hook for manual route visits in React and Vue#42
Julien-R44 merged 3 commits into
Julien-R44:mainfrom
7nohe:feat/manual-visits

Conversation

@7nohe

@7nohe 7nohe commented Feb 19, 2025

Copy link
Copy Markdown
Contributor

We have already discussed it here, and as one of the features from that discussion, I have implemented type-safe support for Inertia’s Manual visits.

@Julien-R44

Copy link
Copy Markdown
Owner

Looks cool !! Thanks for the PR

I just added some typings tests to make sure everything is fine and also a changesets.

I think that later on we will also be able to support useRouter().get/post/put etc...
https://inertiajs.com/manual-visits#data

And make the payload/data sent typesafe thanks to Tuyau codegen

Thanks again

@Julien-R44 Julien-R44 merged commit 319a06d into Julien-R44:main Feb 20, 2025
@7nohe 7nohe deleted the feat/manual-visits branch February 20, 2025 23:32
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