diff --git a/src/__docs__/migrating-from-react-use.story.mdx b/src/__docs__/migrating-from-react-use.story.mdx index 79d506006..3c3c2bec2 100644 --- a/src/__docs__/migrating-from-react-use.story.mdx +++ b/src/__docs__/migrating-from-react-use.story.mdx @@ -1,4 +1,4 @@ -import {Meta} from '@storybook/addon-docs' +import { Meta } from '@storybook/addon-docs'; @@ -238,7 +238,9 @@ Not implemented yet #### useInterval -Not implemented yet +Implemented as [useIntervalEffect](/docs/lifecycle-useintervaleffect--example) + +No API changes, besides name change. #### useSpring @@ -498,7 +500,7 @@ No API changes. #### useEffectOnce -No plans to implement +Was just an alias for [useMountEffect](/docs/lifecycle-usemounteffect-example) - use that directly instead. #### useEvent diff --git a/src/useIntervalEffect/__docs__/story.mdx b/src/useIntervalEffect/__docs__/story.mdx index dafa0f533..7a9133840 100644 --- a/src/useIntervalEffect/__docs__/story.mdx +++ b/src/useIntervalEffect/__docs__/story.mdx @@ -1,10 +1,10 @@ -import {Canvas, Meta, Story} from '@storybook/addon-docs'; -import {Example} from './example.stories'; -import {ImportPath} from '../../__docs__/ImportPath'; +import { Canvas, Meta, Story } from '@storybook/addon-docs'; +import { Example } from './example.stories'; +import { ImportPath } from '../../__docs__/ImportPath'; -# useInterval +# useIntervalEffect Like `setInterval` but in the form of a React hook. diff --git a/src/useIntervalEffect/__tests__/dom.ts b/src/useIntervalEffect/__tests__/dom.ts index 1547ca169..51d2cca10 100644 --- a/src/useIntervalEffect/__tests__/dom.ts +++ b/src/useIntervalEffect/__tests__/dom.ts @@ -2,7 +2,7 @@ import { renderHook } from '@testing-library/react-hooks/dom'; import { useIntervalEffect } from '../..'; import advanceTimersByTime = jest.advanceTimersByTime; -describe('useInterval', () => { +describe('useIntervalEffect', () => { beforeAll(() => { jest.useFakeTimers(); }); diff --git a/src/useIntervalEffect/__tests__/ssr.ts b/src/useIntervalEffect/__tests__/ssr.ts index e1bf3059c..cc9c60939 100644 --- a/src/useIntervalEffect/__tests__/ssr.ts +++ b/src/useIntervalEffect/__tests__/ssr.ts @@ -1,7 +1,7 @@ import { renderHook } from '@testing-library/react-hooks/server'; import { useIntervalEffect } from '../..'; -describe('useInterval', () => { +describe('useIntervalEffect', () => { it('should be defined', () => { expect(useIntervalEffect).toBeDefined(); });