Skip to content

Commit

Permalink
Fix typo (change imperatively to imperative) (#9750)
Browse files Browse the repository at this point in the history
  • Loading branch information
taylorbryant authored and Timer committed Dec 14, 2019
1 parent 8267c8a commit eee4efd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/next/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -1057,7 +1057,7 @@ export default function MyLink() {
}
```

`router` methods should be only used inside the client side of your app though. In order to prevent any error regarding this subject use the imperatively `prefetch` method in the `useEffect()` hook:
`router` methods should be only used inside the client side of your app though. In order to prevent any error regarding this subject use the imperative `prefetch` method in the `useEffect()` hook:

```jsx
import { useRouter } from 'next/router'
Expand Down

0 comments on commit eee4efd

Please sign in to comment.