Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save wealthfront-data-fetching-blog-post/3ed93d7cdd5f2cda2c71b62c131495ad to your computer and use it in GitHub Desktop.
Save wealthfront-data-fetching-blog-post/3ed93d7cdd5f2cda2c71b62c131495ad to your computer and use it in GitHub Desktop.
<FetchApiQuery
endpointName="getUser"
params={[userId]}
loadingState={<Spinner />}
>
{({ data }) => {
// data is populated in this function!
}}
</FetchApiQuery>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment