@logto/react 4.0.11 → 4.0.13
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/hooks/index.js +2 -1
- package/package.json +6 -6
package/lib/hooks/index.js
CHANGED
|
@@ -18,7 +18,8 @@ const useErrorHandler = () => {
|
|
|
18
18
|
const useHandleSignInCallback = (callback) => {
|
|
19
19
|
const { logtoClient, isAuthenticated, error, setIsAuthenticated, isLoading, setIsLoading } = useContext(LogtoContext);
|
|
20
20
|
const { handleError } = useErrorHandler();
|
|
21
|
-
|
|
21
|
+
// eslint-disable-next-line unicorn/no-useless-undefined
|
|
22
|
+
const callbackRef = useRef(undefined);
|
|
22
23
|
useEffect(() => {
|
|
23
24
|
// eslint-disable-next-line @silverhand/fp/no-mutation
|
|
24
25
|
callbackRef.current = callback; // Update ref to the latest callback.
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@logto/react",
|
|
3
|
-
"version": "4.0.
|
|
3
|
+
"version": "4.0.13",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"module": "./lib/index.js",
|
|
6
6
|
"types": "./lib/index.d.ts",
|
|
@@ -19,8 +19,8 @@
|
|
|
19
19
|
"directory": "packages/react"
|
|
20
20
|
},
|
|
21
21
|
"dependencies": {
|
|
22
|
-
"@silverhand/essentials": "^2.9.
|
|
23
|
-
"@logto/browser": "^3.0.
|
|
22
|
+
"@silverhand/essentials": "^2.9.3",
|
|
23
|
+
"@logto/browser": "^3.0.12"
|
|
24
24
|
},
|
|
25
25
|
"devDependencies": {
|
|
26
26
|
"@silverhand/eslint-config": "^6.0.1",
|
|
@@ -28,15 +28,15 @@
|
|
|
28
28
|
"@silverhand/ts-config": "^6.0.0",
|
|
29
29
|
"@silverhand/ts-config-react": "^6.0.0",
|
|
30
30
|
"@testing-library/react": "^16.0.0",
|
|
31
|
-
"@types/react": "^
|
|
31
|
+
"@types/react": "^19.2.3",
|
|
32
32
|
"@vitest/coverage-v8": "^2.1.9",
|
|
33
33
|
"eslint": "^8.57.0",
|
|
34
34
|
"happy-dom": "^20.0.8",
|
|
35
35
|
"lint-staged": "^15.0.0",
|
|
36
36
|
"postcss": "^8.4.31",
|
|
37
37
|
"prettier": "^3.0.0",
|
|
38
|
-
"react": "^
|
|
39
|
-
"react-dom": "^
|
|
38
|
+
"react": "^19.2.3",
|
|
39
|
+
"react-dom": "^19.2.3",
|
|
40
40
|
"stylelint": "^16.0.0",
|
|
41
41
|
"typescript": "^5.3.3",
|
|
42
42
|
"vitest": "^2.1.9"
|