···11+---
22+'next-urql': minor
33+---
44+55+Add the option to reset the client on a next-urql application.
+8
docs/advanced/server-side-rendering.md
···240240241241Unless the component that is being wrapped already has a `getInitialProps` method, `next-urql` won't add its own SSR logic, which automatically fetches queries during
242242server-side rendering. This can be explicitly enabled by passing the `{ ssr: true }` option as a second argument to `withUrqlClient`.
243243+244244+### Resetting the client instance
245245+246246+In rare scenario's you possibly will have to reset the client instance (reset all cache, ...), this is an uncommon scenario
247247+and we consider it "unsafe" so evaluate this carefully for yourself.
248248+249249+When this does seem like the appropriate solution any component wrapped with `withUrqlClient` will receive the `resetUrqlClient`
250250+property, when invoked this will create a new top-level client and reset all prior operations.
+8
packages/next-urql/README.md
···121121122122In client-side SPAs using `urql`, you typically configure the Client yourself and pass it as the `value` prop to `urql`'s context `Provider`. `withUrqlClient` handles setting all of this up for you under the hood. By default, you'll be opted into server-side `Suspense` and have the necessary `exchanges` set up for you, including the [`ssrExchange`](https://formidable.com/open-source/urql/docs/api/#ssrexchange-exchange-factory).
123123124124+### Resetting the client instance
125125+126126+In rare scenario's you possibly will have to reset the client instance (reset all cache, ...), this is an uncommon scenario
127127+and we consider it "unsafe" so evaluate this carefully for yourself.
128128+129129+When this does seem like the appropriate solution any component wrapped with `withUrqlClient` will receive the `resetUrqlClient`
130130+property, when invoked this will create a new top-level client and reset all prior operations.
131131+124132#### `exchanges`
125133126134When you're using `withUrqlClient` and you don't return an `exchanges` property we'll assume you wanted the default exchanges, these contain: `dedupExchange`, `cacheExchange`, `ssrExchange` (the one you received as a first argument) and the `fetchExchange`.