0.7.10-alpha.0 • Published 1 year ago

@gaopeng123/hooks.use-reload-after-stationary v0.7.10-alpha.0

Weekly downloads
-
License
MIT
Repository
github
Last release
1 year ago

useReloadAfterStationary

TODO: 长时间未操作 reload当前页面

在线demo

Usage

import React from 'react';
import { useReloadAfterStationary } from "../../packages/useReloadAfterStationary";

type TestUseReloadAfterStationaryProps = {};
const TestUseReloadAfterStationary: React.FC<TestUseReloadAfterStationaryProps> = (props) => {
    useReloadAfterStationary({wait: 5000, interval: 1000});
    return (
        <React.Fragment>
            {new  Date().toString()}
        </React.Fragment>
    )
}

export default TestUseReloadAfterStationary;
0.7.10-alpha.0

1 year ago

0.7.8

1 year ago

0.7.6

2 years ago

0.7.2

2 years ago

0.6.3

2 years ago

0.7.1

2 years ago

0.6.0

2 years ago

0.5.1

2 years ago