张延森 4 years ago
parent
commit
0fb9a7215a
1 changed files with 1 additions and 1 deletions
  1. 1
    1
      src/utils/hooks/useUserMounted.js

+ 1
- 1
src/utils/hooks/useUserMounted.js View File

8
   useEffect(() => {
8
   useEffect(() => {
9
     if (user && !mounted.current) {
9
     if (user && !mounted.current) {
10
       mounted.current = true
10
       mounted.current = true
11
-      callback()
11
+      return callback()
12
     }
12
     }
13
   }, [user])
13
   }, [user])
14
 }
14
 }