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 post #6

Open
wants to merge 1 commit into
base: post-lesson-working-with-api-in-mvc
Choose a base branch
from

Conversation

justyna-13
Copy link
Collaborator

No description provided.

Copy link
Member

@FRSgit FRSgit left a comment

Choose a reason for hiding this comment

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

Simple & quick implementation, I like it!

You can have a look at solution by Adam - he has added "variable handling" to the mutate method. Just to know that it is possible :)
In this case it wasn't required and your solution is much cleaner, so good job!

I'd say it would be nice to refetch user data right after you add new user (so it's visible that something was added) - also, you can add error handling using error variable.

But these weren't required parts of the exercise, so it's okay :)

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