Module

NextUI.SWR

Package
purescript-nextjs
Repository
rowtype-yoga/purescript-nextjs

#SWR Source

type SWR d err = { data :: d, error :: err }

#useSWR_ Source

useSWR_ :: forall d err. EffectFn2 String (EffectFn1 String (Promise d)) (SWR d err)

#useSWR Source

useSWR :: forall d err. String -> (String -> Effect (Promise d)) -> Hook (UseSWR d) (SWR d err)

#UseSWR Source

data UseSWR t0 t1

#swrConfig Source

swrConfig :: forall props. ReactComponent (Record props)