starfx
sitemap
github
discord
sitemap
starfx doc sitemap
Getting started
Motivation
When to use this library?
Code
Install
Effection
Learn
How does starfx work?
How is starfx different?
Why does starfx use generators?
Data strategy: preload then refresh
Controllers
Thunks
Anatomy of thunk middleware
Anatomy of an Action
Thunk payload
Custom ctx
Endpoints
Enforcing fetch response type
Using variables inside the API endpoint
The same API endpoints but different logic
ctx.request
Using ctx.req
ctx.response
ctx.json
Middleware automation
Dispatch
Dispatch in thunk
Dispatch in react
Listening to actions
Models
Store
How to update state
Updater function
Updating state from view
Schema
Schema assumptions
Built-in slices
Build your own slice
Selectors
React
Hooks
useSelector
useDispatch
useLoader
useApi
useQuery
useCache
useLoaderSuccess
Guides & Concepts
Caching
Manual
Automatic
timer supervisor
Dependent Queries
Dispatch the thunk as an action
Call the middleware stack directly
Middleware
Context
Loaders
Usage
Shape
isLoading vs isInitialLoading
The meta property
FX
parallel
Error Handling
Structured Concurrency
Supervisors
poll
timer
Testing
Design Philosophy
Resources
Quick links
Talks
Other notable libraries