React forceUpdate
Use forceUpdate(callback?)
to force a component to re-render. Optionally, call a callback after the update is done.
The one given usecase for this is for external data sources which don't hook into React's lifecycle.
React notes that this usecase has been superseded by useSyncExternalStore()
See the legacy React docs on forceUpdate
workaroundSee the React docs for more info on forceUpdate()