Liking cljdoc? Tell your friends :D

hx.hooks.alpha


statescljs

source

useReducerOncecljs

(useReducerOnce reducer initial k)

Like useReducer, but maintains your state across hot-reloads. k is a globally unique key to ensure you always get the same state back.

Example: (useReducerOnce reducer initial ::counter)

Like useReducer, but maintains your state across hot-reloads. `k` is a globally
unique key to ensure you always get the same state back.

Example: `(useReducerOnce reducer initial ::counter)`
sourceraw docstring

useSmartEffectclj/smacro

(useSmartEffect & body)
source

useSmartLayoutEffectclj/smacro

(useSmartLayoutEffect & body)
source

useSmartMemoclj/smacro

(useSmartMemo & body)
source

useStateOncecljs

(useStateOnce initial k)

Like useState, but maintains your state across hot-reloads. k is a globally unique key to ensure you always get the same state back.

Example: (useStateOnce 0 ::counter)

Like useState, but maintains your state across hot-reloads. `k` is a globally
unique key to ensure you always get the same state back.

Example: `(useStateOnce 0 ::counter)`
sourceraw docstring

cljdoc is a website building & hosting documentation for Clojure/Script libraries

× close