Last active
October 2, 2021 12:55
-
-
Save davidkpiano/31982e8b0eb113c7655039e7909419e4 to your computer and use it in GitHub Desktop.
xstate query ideas
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function Example() { | |
const [{ isLoading, error, data }] = useMachine( | |
createQuery('repoData', () => fetch('...').then((res) => res.json())) | |
); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment