Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Fix example #47

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

Merged
mpeyper merged 1 commit into testing-library:master from josepot:fix/main-example
Apr 22, 2019
Merged

Fix example #47

mpeyper merged 1 commit into testing-library:master from josepot:fix/main-example
Apr 22, 2019

Conversation

Copy link
Contributor

@josepot josepot commented Apr 22, 2019

What:

I've fixed the code of the main example.

Why:

Because as I explain in this post, the custom-hook of the main example wouldn't work correctly otherwise.

How:

I just used the function overload of setState.

Checklist:

Yep

  • Documentation updated
  • Ready to be merged
  • Added myself to contributors table

Copy link

codecov-io commented Apr 22, 2019
edited
Loading

Codecov Report

Merging #47 into master will not change coverage.
The diff coverage is n/a.

Impacted file tree graph

@@ Coverage Diff @@
## master #47 +/- ##
=====================================
 Coverage 100% 100% 
=====================================
 Files 1 1 
 Lines 44 44 
 Branches 4 4 
=====================================
 Hits 44 44

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 7d4d3d2...68cca1c. Read the comment docs.

Copy link
Member

mpeyper commented Apr 22, 2019

Nice observation.

josepot reacted with thumbs up emoji

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Reviewers
No reviews
Assignees
No one assigned
Labels
None yet
Projects
None yet
Milestone
No milestone
Development

Successfully merging this pull request may close these issues.

AltStyle によって変換されたページ (->オリジナル) /