Module

React.Basic.Hooks.Suspense.Store

#mkSuspenseStore

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

Simple key-based cache.

#SuspenseStore

newtype SuspenseStore k v

#get

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

#get'

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

Modules