mirror of
https://github.com/documenso/documenso.git
synced 2025-11-16 17:51:49 +10:00
19 lines
391 B
TypeScript
19 lines
391 B
TypeScript
export const RefreshOnFocus = () => {
|
|
// Todo: Would this still work?
|
|
// const { refresh } = useRouter();
|
|
|
|
// const onFocus = useCallback(() => {
|
|
// refresh();
|
|
// }, [refresh]);
|
|
|
|
// useEffect(() => {
|
|
// window.addEventListener('focus', onFocus);
|
|
|
|
// return () => {
|
|
// window.removeEventListener('focus', onFocus);
|
|
// };
|
|
// }, [onFocus]);
|
|
|
|
return null;
|
|
};
|