Mirror: The highly customizable and versatile GraphQL client with which you add on features like normalized caching as you grow.
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

fix(react): execute subscriptions with latest vars (#2463)

* fix(react): execute subscriptions with latest vars

This is a similar fix to https://github.com/FormidableLabs/urql/pull/1982

* Create tasty-cooks-promise.md

authored by

Jovi De Croock and committed by
GitHub
64163c64 5bb6d3b9

+6 -1
+5
.changeset/tasty-cooks-promise.md
··· 1 + --- 2 + "urql": patch 3 + --- 4 + 5 + Fix issue where a paused subscription would execute with stale variables.
+1 -1
packages/react-urql/src/hooks/useSubscription.ts
··· 110 110 ...opts, 111 111 }); 112 112 113 - setState(state => [source, state[1], state[2]]); 113 + setState(state => [source, state[1], deps]); 114 114 }, 115 115 [client, args.context, request] 116 116 );