useData API
These docs are auto-generated from typings files (
*.d.ts
).
useData
Grabs the data out of the FetchInstance
. This function may return null
if there is no data available yet.
If you pass in null
(or any other falsy value), you'll get null
back out
declare function useData(fetch: FetchInstance | null): Data | null;