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
Directly set cached query data (for placeholder data, optimistic updates, rollback). Marks the entry stale — the next ensure-query background-refetches.
[::rfq/invalidate-tags tags]
Mark matching queries stale & refetch active ones
[::rfq/remove-query qid]
Remove a specific query from cache (used internally by GC)
[::rfq/garbage-collect]
Bulk remove all expired inactive queries
[::rfq/reset-api-state]
Clear all queries, mutations, and cancel all GC/polling timers
Only ::rfq/query triggers a fetch. The other query subscriptions are
derived — they extract a single field from the query state but do not
start a fetch or manage the query lifecycle. Always subscribe to
::rfq/query first (or instead).
Subscription
Triggers fetch?
Returns
[::rfq/query k params]
✅ Yes
Full query state map
[::rfq/query k params opts]
✅ Yes
Full query state map (opts: {:polling-interval-ms 5000, :skip? false})
[::rfq/query-state k params]
❌ No
Full query state map (same shape as ::rfq/query, no side effects)
[::rfq/infinite-query-state k params]
❌ No
Full infinite query state (same shape as ::rfq/infinite-query, no side effects)
[::rfq/query-data k params]
❌ No
Just the :data
[::rfq/query-status k params]
❌ No
Just the :status (:idle, :loading, :success, :error)
(rfq/parse-result-event event-vec) — parses one of the four query result events (::rfq/query-success, ::rfq/query-failure, ::rfq/infinite-page-success, ::rfq/infinite-page-failure) into a map. Returns nil for any other event. Use inside global interceptors so you don't have to positionally destructure rfq event vectors. See Lifecycle Hooks.
Returned map shapes:
Event
Map
[::rfq/query-success k params data]
{:event-id :k :params :data}
[::rfq/query-failure k params error]
{:event-id :k :params :error}
[::rfq/infinite-page-success k params mode page-data]