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

useMutation - Update user (PATCH) #107

Closed
Tracked by #42
mazipan opened this issue Oct 20, 2023 · 2 comments · Fixed by #117
Closed
Tracked by #42

useMutation - Update user (PATCH) #107

mazipan opened this issue Oct 20, 2023 · 2 comments · Fixed by #117

Comments

@mazipan
Copy link
Owner

mazipan commented Oct 20, 2023

No description provided.

@mazipan mazipan mentioned this issue Oct 20, 2023
7 tasks
@amarangganar
Copy link
Contributor

I noticed that patchUpdateUser is called after calling checkTheSlugOwner (which is related to #106 ). Do you prefer to have them in separate mutations or is it okay to chain them in on mutation instead?

@mazipan
Copy link
Owner Author

mazipan commented Oct 21, 2023

I have no preferences.
Do what do you think is the better one

@kodiakhq kodiakhq bot closed this as completed in #117 Oct 23, 2023
kodiakhq bot pushed a commit that referenced this issue Oct 23, 2023
Closes #106
Closes #107 

## Description
Use `useMutation` to handle patch update user. `checkTheSlugOwner` api call is chained with `patchUpdateUser` since it is necessary to check the slug validity before updating user.
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 a pull request may close this issue.

2 participants