Examples
Each example is a React app whose state lives in a Foldkit Program. Open one to try it, and read its source next to it.
API cache
AsyncData as the cache, with invalidation, stale data while refetching, and a refetch Subscription.
View sourceAPI cache with Query
The same cache, with Query.define as a Submodel for settling, retries, and deduplication.
View sourceAPI cache with HttpApi
Query Commands call a typed HttpApi client that the application Layer supplies.
View source