This expression is not callable on custom hook

Viewed 28

I'm trying to create a custom hook to make a POST call but I get a problem when trying to call the mutate function. Here's my code.

My custom hook: enter image description here

This is how I'm trying to call it:

enter image description here

Thanks for your help!

1 Answers

It was just a TypeScript error :(

Have a look at this issue for more info

Related