urql-graphql / urql

The highly customizable and versatile GraphQL client with which you add on features like normalized caching as you grow.
https://urql.dev/goto/docs
MIT License
8.57k stars 444 forks source link

docs(next): fix import source of useRouter #3369

Closed kondo0602 closed 11 months ago

kondo0602 commented 11 months ago

In the documentation, useRouter is imported from next/router, but if you are using App Router, you need to import from next/navigation. https://nextjs.org/docs/app/api-reference/functions/use-router#migrating-from-nextrouter

The refresh method is not exported from next/router.