5 Commits

Author SHA1 Message Date
xobotyi
b6993a6f95
feat(prettier): make prettier a part of eslint.
Also reduce max line width to 100. And remove `lint:types` step for
commit sequence, it bothers when committing incomplete (wip) changes.
2021-02-01 18:58:55 +03:00
Anton Zinovyev
30abe2b22e
feat: add useFirstMountState & useRendersCount hooks (#769)
feat(useFirstMountState): hook to track if render is first;
feat(useRendersCount): hook to track renders count;
refactor(useUpdateEffect): now uses useFirstMountState hook;
refactor(usePreviousDistinct): now uses with useFirstMountState hook;
docs: update readme;
2019-11-23 15:14:35 +03:00
xobotyi
fbe9b1303c feat(usePreviousDistinct): now predicate not called on initial render;
feat(usePreviousDistinct): tests are fine now;
2019-11-04 10:47:53 +03:00
xobotyi
30f53e8c5d feat(usePreviousDistinct): improve types; 2019-11-04 10:05:08 +03:00
Paul Sachs
6c3e569db6 feat: add usePreviousDistinct (#551)
* feat: add usePreviousDistinct

* Cleanup

* Added storybook docs

* improve demo in docs
2019-08-25 21:20:44 +02:00