You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
|`adapter`|`typeof QueryAdapter`|**(required)** The adapter class responsible for sending requests. Set automatically on `RESTQuery`. Custom query types must set this to their own adapter class. |
|`adapter`|`typeof QueryAdapter`|**(required)** The adapter class responsible for sending requests. Set automatically on `RESTQuery`. Custom query types must set this to their own adapter class. |
56
56
57
57
#### Instance properties
58
58
@@ -79,15 +79,15 @@ Convenience base class for REST/JSON queries. Handles URL construction, search p
|`fetchNext`|`FetchNextConfig \| undefined`| — | Static pagination config. Values can be FieldRefs (e.g. `this.result.nextCursor`). |
91
91
|`response`|`Response \| undefined`| — | The raw HTTP `Response` from the last fetch. Set by `RESTQueryAdapter` after each request completes. Available in `getConfig()`. |
92
92
93
93
#### `getIdentityKey()` default
@@ -161,9 +161,9 @@ Base class for mutation definitions.
|`adapter`|`typeof QueryAdapter`|**(required)** The adapter class that handles sending this mutation. Set automatically on `RESTMutation`. Custom mutation types must set this to their own adapter class. |
|`adapter`|`typeof QueryAdapter`|**(required)** The adapter class that handles sending this mutation. Set automatically on `RESTMutation`. Custom mutation types must set this to their own adapter class. |
167
167
168
168
#### Instance properties
169
169
@@ -250,21 +250,21 @@ Base class for transport adapters. An adapter handles sending queries and mutati
|`register`|`(queryClient: IQueryClientForAdapter): void`| Called once when the adapter is registered with a `QueryClient`. Override to do setup (e.g. open a WebSocket connection). |
256
-
|`send`|`(ctx: Query, signal: AbortSignal): Promise<unknown>`|**(abstract)** Send a query and return the raw response data. |
257
-
|`sendNext`|`(ctx: Query, signal: AbortSignal): Promise<unknown>`| Optional. Send the next-page request for a paginated query. |
258
-
|`hasNext`|`(ctx: Query): boolean`| Optional. Return `true` if more pages are available for the current result. |
259
-
|`sendMutation`|`(ctx: Mutation, signal: AbortSignal): Promise<unknown>`| Optional. Send a mutation and return the raw response data. |
260
-
|`onNetworkStatusChange`|`(isOnline: boolean): void`| Optional. Called when the network comes online or goes offline. |
261
-
|`destroy`|`(): void`| Optional. Called when the `QueryClient` is destroyed. Clean up connections or timers. |
256
+
|`send`|`(ctx: Query, signal: AbortSignal): Promise<unknown>`|**(abstract)** Send a query and return the raw response data. |
257
+
|`sendNext`|`(ctx: Query, signal: AbortSignal): Promise<unknown>`| Optional. Send the next-page request for a paginated query. |
258
+
|`hasNext`|`(ctx: Query): boolean`| Optional. Return `true` if more pages are available for the current result. |
259
+
|`sendMutation`|`(ctx: Mutation, signal: AbortSignal): Promise<unknown>`| Optional. Send a mutation and return the raw response data. |
260
+
|`onNetworkStatusChange`|`(isOnline: boolean): void`| Optional. Called when the network comes online or goes offline. |
261
+
|`destroy`|`(): void`| Optional. Called when the `QueryClient` is destroyed. Clean up connections or timers. |
|`queryClient`|`IQueryClientForAdapter \| undefined`| Set by `register()`. Use to access the shared query context via `this.queryClient.getContext()`. |
|`queryClient`|`IQueryClientForAdapter \| undefined`| Set by `register()`. Use to access the shared query context via `this.queryClient.getContext()`. |
|`store`|`QueryStore`|`SyncQueryStore` (in-memory) | Persistent storage backend for query results and entity data. Defaults to an in-memory store — data is lost on page refresh. |
49
-
|`adapters`|`QueryAdapter[]`|`[]`| Transport adapters. Register a `RESTQueryAdapter` to configure `fetch`, `baseUrl`, and headers for REST queries. |
50
-
|`log`|`object`|`console`| A logger with `warn` and `error` methods. Fetchium uses `log.warn` for non-fatal parse failures. |
|`store`|`QueryStore`|`SyncQueryStore` (in-memory) | Persistent storage backend for query results and entity data. Defaults to an in-memory store — data is lost on page refresh. |
49
+
|`adapters`|`QueryAdapter[]`|`[]`| Transport adapters. Register a `RESTQueryAdapter` to configure `fetch`, `baseUrl`, and headers for REST queries.|
50
+
|`log`|`object`|`console`| A logger with `warn` and `error` methods. Fetchium uses `log.warn` for non-fatal parse failures. |
0 commit comments