Skip to content

Commit

Permalink
chore(docs): Update navigate helper w/ query params (#34217)
Browse files Browse the repository at this point in the history
  • Loading branch information
graysonhicks committed Dec 8, 2021
1 parent 6113cfc commit 548a82d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions docs/docs/reference/built-in-components/gatsby-link.md
Expand Up @@ -392,10 +392,10 @@ You can similarly check for file downloads:

## Recommendations for programmatic, in-app navigation

Neither `<Link>` nor `navigate` can be used for in-route navigation with a hash or query parameter. If you need this behavior, you should either use an anchor tag or import the `@reach/router` package--which Gatsby already depends upon--to make use of its `navigate` function, like so:
If you need this behavior, you should either use an anchor tag or import the `navigate` helper from `gatsby`, like so:

```jsx
import { navigate } from '@reach/router';
import { navigate } from 'gatsby';

...

Expand Down

0 comments on commit 548a82d

Please sign in to comment.