You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Feb 17, 2023. It is now read-only.
functionApp(){const[{ loading, error, data },fetch]=useRequest(getFooApi)useEffect(()=>{fetch()},[fetch])if(loading)return'loading'if(error)return'error'returndata&&<div>{data}</div>}
The text was updated successfully, but these errors were encountered:
dy
changed the title
use-remote reference implementations
useRemote
Nov 14, 2019
Actually useRemote can be an async storage hook - get/set are async functions there.
In similar way useChannel is sync in general, but initialization is async.
Should that be useAsyncStorage?
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
react-query
zeit/swr
use-request
use-api
use-abortable-fetch
use-http
use-request
The text was updated successfully, but these errors were encountered: