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

mark fetching: false on operationStore init (#2048)

Changed files
+7 -1
.changeset
packages
svelte-urql
+6
.changeset/slow-pets-beg.md
···
+
---
+
'@urql/svelte': patch
+
---
+
+
Fix initialize `operationStore` with `fetching: false`, the invocation of `query` or any other operation will mark it as `true`
+
when deemed appropriate
+1 -1
packages/svelte-urql/src/operationStore.ts
···
const state = {
stale: false,
-
fetching: true,
+
fetching: false,
data: undefined,
error: undefined,
extensions: undefined,