Module

React.Basic.Hooks.Suspense.Store

Package
purescript-react-basic-hooks
Repository
spicydonuts/purescript-react-basic-hooks

#mkSuspenseStore Source

mkSuspenseStore :: forall v k. Ord k => Maybe Milliseconds -> (k -> Aff v) -> Effect (SuspenseStore k v)

Simple key-based cache.

#SuspenseStore Source

newtype SuspenseStore k v

#get Source

get :: forall v k. SuspenseStore k v -> k -> Suspended v

#get' Source

get' :: forall v k. SuspenseStore k v -> Milliseconds -> k -> Suspended v