Skip to content

Commit

Permalink
docs: update jsdoc
Browse files Browse the repository at this point in the history
  • Loading branch information
afiiif committed Apr 27, 2024
1 parent 36082f4 commit 04998e1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/react/use-isomorphic-layout-effect.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,6 @@ import { isClient } from 'dev-disk'

/**
* Does exactly same as `useLayoutEffect`.\
* It will use `useEffect` in **server-side** to prevent warning from Next.js.
* It will use `useEffect` in **server-side** to prevent warning when executed on server-side.
*/
export const useIsomorphicLayoutEffect = isClient ? useLayoutEffect : useEffect

0 comments on commit 04998e1

Please sign in to comment.