Skip to content

Latest commit

 

History

History
18 lines (11 loc) · 405 Bytes

File metadata and controls

18 lines (11 loc) · 405 Bytes
description Force an update, ideal for working with references

useUpdate

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. update: Callback, force component update.