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

1
const update = useUpdate();
Copied!
Where:
  1. 1.
    update: Callback, force component update.
Copy link
Edit on GitHub
Contents
Syntax