Skip to content
This repository has been archived by the owner on Nov 11, 2023. It is now read-only.

useMutate can crash if the server is sending a bad JSON #140

Closed
fabien0102 opened this issue Jul 25, 2019 · 1 comment
Closed

useMutate can crash if the server is sending a bad JSON #140

fabien0102 opened this issue Jul 25, 2019 · 1 comment
Assignees

Comments

@fabien0102
Copy link
Contributor

fabien0102 commented Jul 25, 2019

Describe the bug
ngnix is a bad boy, you ask for a json, send you an html -> boom!

We already handle this case on classic component, apparently I forgot to port this edge case to the hook one 😕

Late note

It was covered, a unit test was added to demontrate this use case 😉

@fabien0102 fabien0102 self-assigned this Jul 25, 2019
@fabien0102
Copy link
Contributor Author

I'm fine, I'm trying to find a bug, I was suspecting in restful-react, but apparently it's cover… So I just add a unit test for the next time ;)

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant