-
Base primitives:
- state
- computed
- effect
-
Higher level primitives:
- async / resource (non-cached)
- query / mutation (cached)
NOTE:
- the
asyncandqueryprimitives can be built from the base primitives (but only if the equivalent ofstate,computedandeffectexists!)
signalcomputedeffectasync/resource(can be made from the base primitives)query/mutation(can be made from the base primitives)
useStateuseMemouseEffectuseAsync/useResource(can be made from the base primitives)useQuery/useMutation(can be made from the base primitives)
atomatomatomEffect(library add-on)atom/loadable(supports async atoms)atomWithQuery(library add-on)
observablecomputedautorun/reaction(does not have inner disposal)- X (can probably be made from the base primitives?)
- X (can probably be made from the base primitives?)
statecomputedeffectOn- X (can probably be made from the base primitives?)
- X (can probably be made from the base primitives?)
stateselectorlistenerrtk-query(library add-on)rtk-query(library add-on)
stateselector- X (has to be implemented via
subscribeand middleware) - X (?)
- X (?)