A library for using TanStack Query with Orbit.js.
npm install @tanstack-query-with-orbitjs/core@tanstack-query-with-orbitjs/coreA library for using TanStack Query with Orbit.js.
This is the UI framework agnostic _core_, which could be seen as corresponding to @tanstack/query-core in original TanStack Query.
Install using your preferred Node.js package manager. For example:
``sh`
pnpm add @tanstack-query-with-orbitjs/core
@tanstack-query-with-orbitjs/core comes with three new classes that enable the integration between TanStack Query and Orbit.js:
- LiveQueryClient
Replacement for
QueryClient.
(Extends
QueryClient
class.)
- LiveQueryObserver
Replacement for
QueryObserver.
(Extends
QueryObserver
class.)
- LiveInfiniteQueryObserver
Replacement for
InfiniteQueryObserver.
(Extends
InfiniteQueryObserver
class.)
It also exports the following types:
- LiveQueryClientConfig
Interface describing the config passed to the LiveQueryClient constructor. (ExtendsQueryClientConfig
interface.)
- QueryMeta
Module augmented, and declaration merged more specific version of
the
QueryMeta
interface.
- GetQueryOrExpressions
Type which describes the first parameter of the MemorySource#query` method.