Documentation

website.component.data

Shared, mount-independent resource loading. Adapters are registered separately.

*entries

*installed

*queue-tick

*sources

*targets

cache-limit

default-timeout-ms

drain!

(drain!)

Start the current batch together; nested dependencies join the next tick.

enqueue!

(enqueue! start!)

ensure!

(ensure! resource)

Queue immediately, independent of React. Return a shared Promise for one resource. Errors are retained until retry; successful remote snapshots default to 60s TTL.

ensure-all!

(ensure-all! resources)

failure

(failure resources)

invalidate!

(invalidate! matches?)

Drop matching resources and reject their waiters. Late results cannot install. Used by auth changes as well as explicit refreshes.

prefetch!

(prefetch! resources)

register-source!

(register-source! id adapter)

resource-key

(resource-key resource)

restore!

(restore! resource)

Install a valid opt-in snapshot synchronously, before the loading branch.

retry!

(retry! resources)

retry-background!

(retry-background! resources)

snapshot

(snapshot resource)

state

(state resources)

wait-for!

(wait-for! reference read! timeout-ms)

Observe a ratom without creating a React subscription. Always remove the watch.