You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
kambing86
changed the title
fromFetch will not abort response correctly when built in Mac or Linux (WSL in Win10)
fromFetch will not abort fetch request and trigger finalize operator when built in Mac or Linux (WSL in Win10)
Aug 28, 2019
Bug Report
Current Behavior
fromFetch
is not able to abort thefetch
request for subscription1, check theNetwork
tab in Chrome's Developer Toolanother bug is the finalize operator will not be triggered for subscription2 when it's aborted
it only happens when built in Mac / WSL in Win 10
but it is running totally fine in codesandbox
Reproduction
clone github repo, and run
yarn && yarn start
https://github.com/kambing86/npm-explorer/tree/feat/use-fromFetchhttps://github.com/kambing86/test-from-fetch
but it is running totally fine in
https://codesandbox.io/s/github/kambing86/npm-explorer/tree/feat/use-fromFetchhttps://codesandbox.io/embed/test-fromfetch-3x463https://codesandbox.io/s/github/kambing86/test-from-fetch
Expected behavior
When
unsubscribe
is called, thefromFetch
should abort thefetch
if it is not resolved,finalize
operator should be triggeredEnvironment
Additional context/Screenshots
check the captured video here
https://youtu.be/ZaMm_n1K4Y8https://youtu.be/PYt3MJ_tBNQhttps://youtu.be/CdqvooTDC0g
edit: use simpler repo to reproduce, will only happen if it's used in
mergeMap
operatoredit 27/6/2019: uploaded new video, localhost built in windows using node v10.16.0
edit 28/8/2019: added finalize operator and found a new bug
edit 3/9/2019: if I changed to use
then everything works fine
The text was updated successfully, but these errors were encountered: