This release comes with some important fixes and enhancements, which all address
certain edge-cases when using urql
.
It fixes the cache-and-network
request policy, which wouldn't always work correctly and issue another network request after resolving a response from the default cache. We also had a major bug in React Native environments where responses wouldn't ever be reflected in the useQuery
hook's state. Lastly, you can now use extensions
from your GraphQL servers and modify the OperationContext
from the hooks options.
- ✨ Add support for
extensions
key in GraphQL responses, by @adamscybot (see #355) - ⚠ Fix
cache-and-network
request policy by adding operation flushing to the client (see #356) - Add
fetch
option to the Client so it doesn't have to be polyfilled globally (see #357 and #359) - ⚠ Fix
useImmediateState
for React Native environments (see #358) - ✨ Add
context
option to all hooks to allowOperationContext
to be changed dynamically (see #351) - Add
isClient
option tossrExchange
in casesuspense
is activated on the client-side (see #369)