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(core): Fix `preferGetMethod` client option (#3403)

Co-authored-by: Phil Pluckthun <phil@kitten.sh>

authored by

Vladimir Novoselov
Phil Pluckthun
and committed by
GitHub
812385d4 423897f9

+8 -3
+5
.changeset/real-emus-sneeze.md
··· 1 + --- 2 + '@urql/core': patch 3 + --- 4 + 5 + Fix `preferGetMethod: 'force' | 'within-url-limit'` not being applied correctly by the `Client`
+2 -2
packages/core/src/client.test.ts
··· 141 141 fetchOptions: undefined, 142 142 fetch: undefined, 143 143 suspense: false, 144 - preferGetMethod: false, 144 + preferGetMethod: undefined, 145 145 }); 146 146 expect(queryResult).toHaveProperty('then'); 147 147 }); ··· 167 167 fetchOptions: undefined, 168 168 fetch: undefined, 169 169 suspense: false, 170 - preferGetMethod: false, 170 + preferGetMethod: undefined, 171 171 }); 172 172 expect(mutationResult).toHaveProperty('then'); 173 173 });
+1 -1
packages/core/src/client.ts
··· 572 572 fetchSubscriptions: opts.fetchSubscriptions, 573 573 fetchOptions: opts.fetchOptions, 574 574 fetch: opts.fetch, 575 - preferGetMethod: !!opts.preferGetMethod, 575 + preferGetMethod: opts.preferGetMethod, 576 576 requestPolicy: opts.requestPolicy || 'cache-first', 577 577 }; 578 578