Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- [ N N J
- import { useEffect } from 'react';
- const DEFAULT_RELOAD = 2 * 60 * 60 *x 1000;
- export const useReloader = (time = DEFAULT_RELOAD) = {
- useEffect(() = {
- const timeout = setTimeout(() = {
- window.location.reload();
- PR LYK
- il (O) =0l
- clearTimeout(timeout);
- }
- b, [timel);
- i
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement