Commit cd9209ac authored by Shen Chang's avatar Shen Chang Committed by GitHub

Update useKeepAliveEffect.tsx

parent 46c0028d
...@@ -5,7 +5,7 @@ import IdentificationContext, {IIdentificationContextProps} from '../contexts/Id ...@@ -5,7 +5,7 @@ import IdentificationContext, {IIdentificationContextProps} from '../contexts/Id
export default function useKeepAliveEffect(effect: React.EffectCallback) { export default function useKeepAliveEffect(effect: React.EffectCallback) {
if (!useEffect) { if (!useEffect) {
warn('[React Keep Alive] useKeepAlive API requires react 16.8 or later.'); warn('[React Keep Alive] useKeepAliveEffect API requires react 16.8 or later.');
} }
const { const {
eventEmitter, eventEmitter,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment