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

feat: new hook, useNetworkState #35

Merged
merged 4 commits into from
May 3, 2021
Merged

feat: new hook, useNetworkState #35

merged 4 commits into from
May 3, 2021

Conversation

xobotyi
Copy link
Contributor

@xobotyi xobotyi commented May 2, 2021

What new hook does?

Tracks the state of browser's network connection.

Checklist

  • Have you read contribution guideline?
  • Does the code have comments in hard-to-understand areas?
  • Is there an existing issue for this PR?
    • link issue here
  • Have the files been linted and formatted?
  • Have the docs been updated?
  • Have the tests been added to cover new hook?
  • Have you run the tests locally to confirm they pass?

@xobotyi xobotyi added the 🎂 new hook New hook added label May 2, 2021
@xobotyi xobotyi requested a review from JoeDuncko May 2, 2021 19:57
@codecov
Copy link

codecov bot commented May 2, 2021

Codecov Report

Merging #35 (c91c3b6) into master (d181c7f) will not change coverage.
The diff coverage is 100.00%.

Impacted file tree graph

@@            Coverage Diff            @@
##            master       #35   +/-   ##
=========================================
  Coverage   100.00%   100.00%           
=========================================
  Files           15        17    +2     
  Lines          113       141   +28     
  Branches        14        20    +6     
=========================================
+ Hits           113       141   +28     
Impacted Files Coverage Δ
src/useNetworkState.ts 100.00% <100.00%> (ø)
src/util/misc.ts 100.00% <100.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 d181c7f...c91c3b6. Read the comment docs.

@xobotyi xobotyi force-pushed the useNetworkState branch from fc02037 to 8b81063 Compare May 2, 2021 20:06
@xobotyi xobotyi merged commit b5b082c into master May 3, 2021
@xobotyi xobotyi deleted the useNetworkState branch May 3, 2021 14:36
github-actions bot pushed a commit that referenced this pull request May 3, 2021
# [1.14.0](v1.13.0...v1.14.0) (2021-05-03)

### Features

* new hook, useNetworkState ([#35](#35)) ([b5b082c](b5b082c))
@github-actions
Copy link
Contributor

github-actions bot commented May 3, 2021

🎉 This PR is included in version 1.14.0 🎉

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
Development

Successfully merging this pull request may close these issues.

2 participants