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: add useFirstMountState & useRendersCount hooks #769

Merged
merged 3 commits into from
Nov 23, 2019

Conversation

xobotyi
Copy link
Contributor

@xobotyi xobotyi commented Nov 13, 2019

feat(useFirstMountState): hook to track if render is first;
feat(useRendersCount): hook to track renders count;
feat(useUpdateEffect): refactored with useFirstMountState hook;
feat(usePreviousDistinct): refactored with useFirstMountState hook;

Description

Type of change

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to not work as before)

Checklist

  • Read the Contributing Guide
  • Perform a code self-review
  • Comment the code, particularly in hard-to-understand areas
  • Add documentation
  • Add hook's story at Storybook
  • Cover changes with tests
  • Ensure the test suite passes (yarn test)
  • Provide 100% tests coverage
  • Make sure code lints (yarn lint). Fix it with yarn lint:fix in case of failure.
  • Make sure types are fine (yarn lint:types).

feat(useRendersCount): hook to track renders count;
feat(useUpdateEffect): refactored with useFirstMountState hook;
feat(usePreviousDistinct): refactored with useFirstMountState hook;
@xobotyi xobotyi self-assigned this Nov 13, 2019
@xobotyi xobotyi added the enhancement New feature or request label Nov 13, 2019
@xobotyi xobotyi merged commit 30abe2b into master Nov 23, 2019
@xobotyi xobotyi deleted the feat-useRendersCount branch November 23, 2019 12:14
streamich pushed a commit that referenced this pull request Nov 23, 2019
# [13.9.0](v13.8.2...v13.9.0) (2019-11-23)

### Features

* add useFirstMountState & useRendersCount hooks ([#769](#769)) ([30abe2b](30abe2b))
@streamich
Copy link
Owner

🎉 This PR is included in version 13.9.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
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants