Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 4 additions & 2 deletions src/React/Basic/Hooks.purs
Original file line number Diff line number Diff line change
Expand Up @@ -206,8 +206,10 @@ useEffectAlways effect = unsafeHook (runEffectFn1 useEffectAlways_ effect)

foreign import data UseEffect :: Type -> Type -> Type

-- | Like `useEffect`, but the effect is performed on every render. Prefer `useEffect`
-- | with a proper dependency list whenever possible!
-- | Like `useEffect`, but the effect is performed synchronously after the browser has
-- | calculated layout. Useful for reading properties from the DOM that are not available
-- | before layout, such as element sizes and positions. Prefer `useEffect` whenever
-- | possible to avoid blocking browser painting.
useLayoutEffect ::
forall deps.
Eq deps =>
Expand Down