Closed tschirky closed 1 year ago
@tschirky Thanks for the support and the issue, we will handle this!
Very cool! Thanks for fixing this.
:tada: This issue has been resolved in version 5.7.0 :tada:
The release is available on:
npm package (@latest dist-tag)
Your semantic-release bot :package::rocket:
First of all, I wanna say that I like hyper-fetch a lot!! Especially for the offline use-cases we're about to tackle, it seems the perfect solution.
Anyways, I found this inconsistency when creating a request. As by the documentation, you can append a response mapper. Here's an example:
When using this request in a useFetch hook afterwards, I observe the following:
Now I read that the responses are cached in their "original" form, but I would expect that since "data" and "onSuccess" are based on the same request definition (i.e. getUsers), they would both be provided with the same response.