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: default useUnmountEffect example to false #27

Merged
merged 1 commit into from
Apr 28, 2021

Conversation

JoeDuncko
Copy link
Contributor

@JoeDuncko JoeDuncko commented Apr 28, 2021

What is the problem?

The useMountEffect example triggers a dialogue when you leave the page by default, which is super annoying.

What changes does this PR make to fix the problem?

The useMountEffect example now requires user interaction before triggering a dialogue.

Checklist

  • Is there an existing issue for this PR?
    • link issue here

@JoeDuncko JoeDuncko added the 📄 documentation Improvements or additions to documentation label Apr 28, 2021
@JoeDuncko JoeDuncko requested a review from xobotyi April 28, 2021 15:52
@JoeDuncko JoeDuncko self-assigned this Apr 28, 2021
@codecov
Copy link

codecov bot commented Apr 28, 2021

Codecov Report

Merging #27 (076871c) into master (146d75d) will increase coverage by 0.78%.
The diff coverage is n/a.

Impacted file tree graph

@@            Coverage Diff             @@
##           master      #27      +/-   ##
==========================================
+ Coverage   94.73%   95.52%   +0.78%     
==========================================
  Files          10       11       +1     
  Lines          57       67      +10     
  Branches        5        5              
==========================================
+ Hits           54       64      +10     
  Misses          3        3              
Impacted Files Coverage Δ
src/index.ts 100.00% <0.00%> (ø)
src/useIsMounted.ts 100.00% <0.00%> (ø)

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 146d75d...076871c. Read the comment docs.

@JoeDuncko JoeDuncko merged commit 2ed0aa3 into master Apr 28, 2021
@xobotyi xobotyi deleted the fix-useunmounteffect-example branch April 28, 2021 15:59
github-actions bot pushed a commit that referenced this pull request Apr 28, 2021
## [1.9.1](v1.9.0...v1.9.1) (2021-04-28)

### Bug Fixes

* default useUnmountEffect example to false ([#27](#27)) ([2ed0aa3](2ed0aa3))
@github-actions
Copy link
Contributor

🎉 This PR is included in version 1.9.1 🎉

The release is available on:

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
📄 documentation Improvements or additions to documentation released
Development

Successfully merging this pull request may close these issues.

2 participants