Discuss and implement proper API methods.
Action points
- Create a universal hook (a factory) to use any HTTP method with optional data.
- User
isSuccess
state for all requests andisProcessing
- Using
PATCH
orPUT
. - Using
data
inDELETE
etc.
Edited by Maciej Lenartowicz