Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(gatsby-link): fix navigate method type #39188

Merged
merged 1 commit into from
Dec 20, 2024
Merged

Conversation

gatsbybot
Copy link
Collaborator

Backporting #39169 to the 5.14 release branch

(cherry picked from commit cddc252)

* Fixes type of navigate method

The usage of the original navigation function type created problems when using spreaded parameters. Since the navigate implementation in gatsby does not have the same call signature as @reach/router anyways (the promise returned by @reach/router is ignored), it is easier to define our own interface than to overwrite the types from @reach/router.

* Replace interface and define parameter overloading inline;

---------

Co-authored-by: Philippe Serhal <[email protected]>
(cherry picked from commit cddc252)
@gatsbot gatsbot bot added the status: triage needed Issue or pull request that need to be triaged and assigned to a reviewer label Dec 20, 2024
@pieh pieh removed the status: triage needed Issue or pull request that need to be triaged and assigned to a reviewer label Dec 20, 2024
@pieh pieh merged commit 139aedd into release/5.14 Dec 20, 2024
39 checks passed
@pieh pieh deleted the backport-5.14-39169 branch December 20, 2024 16:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants