One liner to force a re-render when needed
const forceUpdate = useForceUpdate(); // ... // Later forceUpdate();