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

prevent /stripe/create-event from being called twice and throwing a misleading error message #53

Closed
charleslavon opened this issue Jul 22, 2024 · 2 comments · Fixed by #57
Assignees

Comments

@charleslavon
Copy link
Contributor

Address this TODO

Originally posted by @shelegdmitriy in #52 (comment)

@shelegdmitriy
Copy link
Contributor

@charleslavon I grab this issue because I think it's related to this task and related to the issue mentioned by Caleb

@calebjacob
Copy link
Collaborator

Copying my comment from the PR here just to make it easier to find:

This would be a great chance to refactor any of our form submission API calls to use useMutation provided by React Query: https://tanstack.com/query/v4/docs/framework/react/guides/mutations

This will give us many benefits like loading/error states and will make sure duplicate requests don't occur.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Done
Development

Successfully merging a pull request may close this issue.

3 participants