How fetchOptions from StoreManager works ? #4277
Unanswered
AntoineGGG
asked this question in
Q&A
Replies: 1 comment 1 reply
-
Did you try with something like this fetchOptions: opts => {
return opts.method === 'post' ? { method: 'PATCH' } : {}
}, |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hey guys,
First thanks @artf for your works !!
I'm in trouble to manage the StoreManager fetchOptions.
I would like to use like this :
fetchOptions: id ? {method: 'PATCH'} : {method:"POST"}
But nothing works for now.
I tried to write fetchOptions: {method:"PATCH"} but the request still be a POST method.
Any advise to make it works ?
Thanks a lot..
Beta Was this translation helpful? Give feedback.
All reactions