BetterTyped / hyper-fetch

⚡ Fetching and realtime data exchange framework.
https://hyperfetch.bettertyped.com/
Apache License 2.0
1.02k stars 27 forks source link

Feature `cancelable` doesn't work #40

Closed ekabolotina closed 1 year ago

ekabolotina commented 1 year ago

Describe the bug Feature cancelable doesn't work. Or maybe I misunderstood how it should work.

To Reproduce Steps to reproduce the behavior:

  1. Go to https://codesandbox.io/s/wizardly-varahamihira-stnco7?file=/src/index.ts
  2. Open devtools
  3. Reload the page
  4. There are four requests to https://63d90093baa0f79e09b2f14c.mockapi.io/hyper-fetch/users

Expected behavior There is only one request to https://63d90093baa0f79e09b2f14c.mockapi.io/hyper-fetch/users.

Screenshots

Снимок экрана 2023-01-31 в 19 05 00

Additional context There are also a few weird moments:

github-actions[bot] commented 1 year ago

:tada: This issue has been resolved in version 3.3.0 :tada:

The release is available on:

Your semantic-release bot :package::rocket: