@aghoz/react-query
v0.4.3
Published
TanStack Query adapter for aghoz — map edge-stream topics and replay gaps onto query invalidation while the ordinary API remains authoritative.
Maintainers
Readme
@aghoz/react-query
TanStack Query adapter. Maps topics onto query keys so both updates and gaps flow into invalidateQueries, which makes adoption a two-line change.
Requires @aghoz/react alongside it.
npm install @aghoz/react-queryRuns in any browser with fetch and ReadableStream, and in Node 22+. It talks
to an aghoz hub, which is Node.js only for now — there is no server adapter for
another language yet. Cross-origin clients support cookie credentials and dynamic
headers that are evaluated again on reconnect; see the integration guide.
Full documentation, the integration guides and the wire protocol live in the monorepo: https://github.com/akosidencio/aghoz
License
MIT OR Apache-2.0, at your option.
