-
Notifications
You must be signed in to change notification settings - Fork 9
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat: add and update api examples and demo #82
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good, thanks for updating the demo app !
Left a minor suggestion.
if (!result && !error) executeExample(); | ||
}, [result, error]); | ||
|
||
const executeExample = async (): Promise<void> => { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Usually, async function definition goes into useEffect
or even better outside, in a separate file. This is just to prevent the function to be redeclared in each render. Since this is just a demo moving the function inside the useEffect
should be enough.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks! Updated e02cfd1
This pull request updates the examples and provides implementations of the examples in the demo app.