⬆️(dependencies) update js dependencies

Updated the useUser hook to avoid unwrapping the query object directly,
which leads to excessive re-rendering.
This commit is contained in:
renovate[bot]
2025-03-25 12:42:01 +00:00
committed by aleb_the_flash
parent 6b38a3c996
commit 94ae5d52c2
4 changed files with 1291 additions and 2086 deletions

File diff suppressed because it is too large Load Diff

View File

@@ -16,45 +16,45 @@
"@livekit/components-react": "2.8.1", "@livekit/components-react": "2.8.1",
"@livekit/components-styles": "1.1.4", "@livekit/components-styles": "1.1.4",
"@livekit/track-processors": "0.3.3", "@livekit/track-processors": "0.3.3",
"@pandacss/preset-panda": "0.53.0", "@pandacss/preset-panda": "0.53.3",
"@react-aria/toast": "3.0.0-beta.19", "@react-aria/toast": "3.0.1",
"@remixicon/react": "4.6.0", "@remixicon/react": "4.6.0",
"@tanstack/react-query": "5.67.1", "@tanstack/react-query": "5.69.0",
"crisp-sdk-web": "1.0.25", "crisp-sdk-web": "1.0.25",
"hoofd": "1.7.3", "hoofd": "1.7.3",
"i18next": "24.2.2", "i18next": "24.2.3",
"i18next-browser-languagedetector": "8.0.4", "i18next-browser-languagedetector": "8.0.4",
"i18next-parser": "9.3.0", "i18next-parser": "9.3.0",
"i18next-resources-to-backend": "1.2.1", "i18next-resources-to-backend": "1.2.1",
"livekit-client": "2.9.5", "livekit-client": "2.9.8",
"posthog-js": "1.225.1", "posthog-js": "1.232.6",
"react": "18.3.1", "react": "18.3.1",
"react-aria-components": "1.6.0", "react-aria-components": "1.7.1",
"react-dom": "18.3.1", "react-dom": "18.3.1",
"react-i18next": "15.1.1", "react-i18next": "15.1.1",
"use-sound": "5.0.0", "use-sound": "5.0.0",
"valtio": "2.1.3", "valtio": "2.1.4",
"wouter": "3.6.0" "wouter": "3.6.0"
}, },
"devDependencies": { "devDependencies": {
"@pandacss/dev": "0.53.0", "@pandacss/dev": "0.53.3",
"@tanstack/eslint-plugin-query": "5.66.1", "@tanstack/eslint-plugin-query": "5.68.0",
"@tanstack/react-query-devtools": "5.67.1", "@tanstack/react-query-devtools": "5.69.0",
"@types/node": "22.13.9", "@types/node": "22.13.13",
"@types/react": "18.3.12", "@types/react": "18.3.12",
"@types/react-dom": "18.3.1", "@types/react-dom": "18.3.1",
"@typescript-eslint/eslint-plugin": "8.26.0", "@typescript-eslint/eslint-plugin": "8.28.0",
"@typescript-eslint/parser": "8.26.0", "@typescript-eslint/parser": "8.28.0",
"@vitejs/plugin-react": "4.3.4", "@vitejs/plugin-react": "4.3.4",
"eslint": "8.57.0", "eslint": "8.57.0",
"eslint-config-prettier": "10.0.2", "eslint-config-prettier": "10.1.1",
"eslint-plugin-jsx-a11y": "6.10.2", "eslint-plugin-jsx-a11y": "6.10.2",
"eslint-plugin-react-hooks": "5.2.0", "eslint-plugin-react-hooks": "5.2.0",
"eslint-plugin-react-refresh": "0.4.19", "eslint-plugin-react-refresh": "0.4.19",
"postcss": "8.5.3", "postcss": "8.5.3",
"prettier": "3.5.3", "prettier": "3.5.3",
"typescript": "5.8.2", "typescript": "5.8.2",
"vite": "6.2.0", "vite": "6.2.3",
"vite-tsconfig-paths": "5.1.4" "vite-tsconfig-paths": "5.1.4"
} }
} }

View File

@@ -48,7 +48,7 @@ export const useUser = (
const isLoggedOut = isLoggedIn === false const isLoggedOut = isLoggedIn === false
return { return {
...query, refetch: query.refetch,
user: isLoggedOut ? undefined : (query.data as ApiUser | undefined), user: isLoggedOut ? undefined : (query.data as ApiUser | undefined),
isLoggedIn, isLoggedIn,
logout, logout,

View File

@@ -58,14 +58,14 @@ export class SdkReverseClient {
* To be used in SDK scope. * To be used in SDK scope.
*/ */
export function useEnsureAuth() { export function useEnsureAuth() {
const { isLoggedIn, ...other } = useUser({ const { isLoggedIn, refetch } = useUser({
fetchUserOptions: { attemptSilent: false }, fetchUserOptions: { attemptSilent: false },
}) })
const startSSO = () => { const startSSO = () => {
return new Promise<void>((resolve) => { return new Promise<void>((resolve) => {
SdkReverseClient.waitForAuthenticationAck().then(async () => { SdkReverseClient.waitForAuthenticationAck().then(async () => {
await other.refetch() await refetch()
resolve() resolve()
}) })
const params = `scrollbars=no,resizable=no,status=no,location=no,toolbar=no,menubar=no, const params = `scrollbars=no,resizable=no,status=no,location=no,toolbar=no,menubar=no,