Liking cljdoc? Tell your friends :D

Status Tracking

The library distinguishes between initial loading and background refetching so your UI never flashes a loading spinner when stale data is available:

Scenario:status:fetching?:data
Initial load (no data):loadingtruenil
Background refetch (stale data):successtrueprevious data
Idle, fresh data:successfalsecurrent data
Failed fetch:errorfalseprevious data or nil
Retry after error:loadingtrueprevious data or nil

Use :status for data state (what to render) and :fetching? for network state (show a subtle spinner).

Can you improve this documentation?Edit on GitHub

cljdoc builds & hosts documentation for Clojure/Script libraries

Keyboard shortcuts
Ctrl+kJump to recent docs
Move to previous article
Move to next article
Ctrl+/Jump to the search field
× close