How to create an object with a mutation. Getting React error `Invalid hook call`
Hi, would be great if I could some help here 🙂
Here is my userRouter,
getAll
already works without issues. However I dont manage to create objects in my database.
I have a "Create" Page where I get an error when I try to use the mutation to create a User in the database.
The error I get is
I appreciate any help I can get, thank you!1 Reply
I found the solution to the issue here: https://discord.com/channels/966627436387266600/1097508051747082260/1097509504486211644
My code now works like this: