Skip to content

Commit

Permalink
feat(useRefMounted): remove obsolete hook;
Browse files Browse the repository at this point in the history
  • Loading branch information
xobotyi committed Oct 31, 2019
1 parent 5d97bf1 commit dc364c8
Show file tree
Hide file tree
Showing 5 changed files with 1 addition and 77 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@
- [`useEffectOnce`](./docs/useEffectOnce.md) — a modified [`useEffect`](https://reactjs.org/docs/hooks-reference.html#useeffect) hook that only runs once.
- [`useEvent`](./docs/useEvent.md) — subscribe to events.
- [`useLifecycles`](./docs/useLifecycles.md) — calls `mount` and `unmount` callbacks.
- [`useMountedState`](./docs/useMountedState.md) ~~and [`useRefMounted`](./docs/useRefMounted.md)~~ — track if component is mounted.
- [`useMountedState`](./docs/useMountedState.md) — track if component is mounted.
- [`usePromise`](./docs/usePromise.md) — resolves promise only while component is mounted.
- [`useLogger`](./docs/useLogger.md) — logs in console as component goes through life-cycles.
- [`useMount`](./docs/useMount.md) — calls `mount` callbacks.
Expand Down
28 changes: 0 additions & 28 deletions docs/useRefMounted.md

This file was deleted.

21 changes: 0 additions & 21 deletions src/__stories__/useRefMounted.story.tsx

This file was deleted.

4 changes: 0 additions & 4 deletions src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -64,10 +64,6 @@ export { default as usePromise } from './usePromise';
export { default as useRaf } from './useRaf';
export { default as useRafLoop } from './useRafLoop';
export { default as useRafState } from './useRafState';
/**
* @deprecated This hook is obsolete and Will be removed soon, use `useMountedState` instead
*/
export { default as useRefMounted } from './useRefMounted';
export { default as useSearchParam } from './useSearchParam';
export { default as useScroll } from './useScroll';
export { default as useScrolling } from './useScrolling';
Expand Down
23 changes: 0 additions & 23 deletions src/useRefMounted.ts

This file was deleted.

0 comments on commit dc364c8

Please sign in to comment.