File size: 189 Bytes
1e92f2d | 1 2 3 4 5 6 7 8 9 10 | import { useReducer } from 'react';
const useMandatoryUpdate = () => {
const [, forceUpdate] = useReducer((v) => v + 1, 0);
return forceUpdate;
};
export default useMandatoryUpdate;
|
1e92f2d | 1 2 3 4 5 6 7 8 9 10 | import { useReducer } from 'react';
const useMandatoryUpdate = () => {
const [, forceUpdate] = useReducer((v) => v + 1, 0);
return forceUpdate;
};
export default useMandatoryUpdate;
|