Skip to content
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

Merged
merged 12 commits into from
Jul 12, 2023
Merged

Conversation

ryanchristo
Copy link
Member

This pull request updates the examples and provides implementations of the examples in the demo app.

@ryanchristo ryanchristo marked this pull request as ready for review July 12, 2023 00:23
@ryanchristo ryanchristo requested a review from a team July 12, 2023 00:23
Copy link
Contributor

@flagrede flagrede left a 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> => {
Copy link
Contributor

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.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks! Updated e02cfd1

@ryanchristo ryanchristo merged commit f2cfd92 into main Jul 12, 2023
@ryanchristo ryanchristo deleted the ryan/examples-and-demo branch July 12, 2023 19:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants