Skip to content

Commit

Permalink
Update turbo doc
Browse files Browse the repository at this point in the history
  • Loading branch information
jho406 committed Jan 7, 2025
1 parent f91c2e8 commit d2c38d9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions docs/recipes/turbo.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,13 +8,13 @@ In your `application_visit.js` file:

```diff

import { urlToPageKey } from '@thoughtbot/superglue/utils/url'
+ import { urlToPageKey } from '@thoughtbot/superglue'

const appVisit = (...args) => {

const pageKey = urlToPageKey(args[0])
+ // attempt to navigate first
+ this.ref.current.navigateTo(pageKey)
+ ref.current?.navigateTo(pageKey)

return store
.dispatch(visit(...args))
Expand Down

0 comments on commit d2c38d9

Please sign in to comment.