import { useState, useCallback } from 'react';
/**
* Force update
*/
export const useUpdate = () => {
const [_, update] = useState({});
return useCallback(() => update({}), []);
};
hook use update
6/16/2025
import { useState, useCallback } from 'react';
/**
* Force update
*/
export const useUpdate = () => {
const [_, update] = useState({});
return useCallback(() => update({}), []);
};