Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: autoCancel respected when hook is unmounted #1025

Merged
merged 1 commit into from
Aug 31, 2022
Merged

fix: autoCancel respected when hook is unmounted #1025

merged 1 commit into from
Aug 31, 2022

Conversation

lukaskral
Copy link
Contributor

@lukaskral lukaskral commented Aug 31, 2022

this code change fixes issue described in #609

fixes #609

@codecov
Copy link

codecov bot commented Aug 31, 2022

Codecov Report

Merging #1025 (8aa0564) into master (7ae6c94) will not change coverage.
The diff coverage is 100.00%.

❗ Current head 8aa0564 differs from pull request most recent head ad7523a. Consider uploading reports for the commit ad7523a to get more accurate results

@@            Coverage Diff            @@
##            master     #1025   +/-   ##
=========================================
  Coverage   100.00%   100.00%           
=========================================
  Files            2         2           
  Lines          161       165    +4     
  Branches        43        45    +2     
=========================================
+ Hits           161       165    +4     
Impacted Files Coverage Δ
src/index.js 100.00% <100.00%> (ø)

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

@simoneb
Copy link
Owner

simoneb commented Aug 31, 2022

Can you add a test to cover this scenario?

@lukaskral
Copy link
Contributor Author

unit test added

test/index.test.jsx Outdated Show resolved Hide resolved
@lukaskral lukaskral requested a review from simoneb August 31, 2022 10:45
@simoneb simoneb merged commit f0cf765 into simoneb:master Aug 31, 2022
@lukaskral lukaskral deleted the bugfix/609-autoCancel-cant-be-disabled branch August 31, 2022 11:03
@lukaskral
Copy link
Contributor Author

@simoneb thanks for super fast responses 👏

@simoneb
Copy link
Owner

simoneb commented Aug 31, 2022

No problem, thank you for the contribution!

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

Successfully merging this pull request may close these issues.

autoCancel:false not working
2 participants