0

This is the weirdest experience I had so far. I made a hook that uses an endpoint that would work with react-query. Our company has our own SDK that wraps up all APIs and the format of our hooks would normally look the same.

Problem is, It does not work with my simulator/flipper. I even logged the response but comes undefined. I tried stripping all the stuff like react-query and instead used the SDK directly which is a wrapper for Axios.

Here are other observations:

  • The request is sent but never responds like giving an error or resolving with a value.
  • If you get the context menu and try to copy the cURL and use it in the terminal it works.
  • Copying the cURL to postman will work as well.
  • Tried deleting the build cache, and yarn cache, and cleaning up all the build folders and still gets the same result.

Sample log from flipper

enter image description here

Johneric
  • 49
  • 5

0 Answers0