English
GithubTwitterDiscordPlayground
Search…
⌃K
Links
English
👋
Atomico
🚀
Getting started with Atomico
Api
🧬
Props(Properties)
🧩
VirtualDOM
🎣
Hooks
useProp
useEvent
useRef
useHost
useState
useReducer
useEffect, useLayoutEffect and useInsertionEffect
useMemo and useCallback
useUpdate
useId
useContext
usePromise
useAsync and useSuspense
🔬
Testing
Guides
📖
Atomico and Storybook
🧠
Atomico design patterns
🗺
Atomico style guide
🛡
Atomico with Typescript
🤝
Atomico and React
💧
SSR / SSG
🔀
Slot
⏳
Atomico and Asynchrony
🗃
Archives
packages
@atomico/vite
@atomico/exports
@atomico/hooks
@atomico/components
@atomico/react
@atomico/store
@atomico/router
@atomico/storybook
@atomico/postcss-tokens
🚫
Deprecated
Support
Discord
Github
Twitter
Powered By GitBook

useUpdate

Force an update, ideal for working with references
It is normal that the state of your component depends on the references of a slot, this hook facilitates the process of observing these references without the need to associate the changes to a state.

Syntax

const update = useUpdate();
Where:
  1. 1.
    update: Callback, force component update.
Previous
useMemo and useCallback
Next
useId
Last modified 10mo ago
Copy link
Edit on GitHub