From b18b27d2f62b600cdb17c31d46079a1a060ef8c2 Mon Sep 17 00:00:00 2001 From: proddy Date: Sat, 22 Aug 2026 15:45:34 +0200 Subject: [PATCH] remove useMemo --- .../authentication/Authentication.tsx | 25 ++++++++----------- 1 file changed, 11 insertions(+), 14 deletions(-) diff --git a/interface/src/contexts/authentication/Authentication.tsx b/interface/src/contexts/authentication/Authentication.tsx index 823a5c9fc..2801235b1 100644 --- a/interface/src/contexts/authentication/Authentication.tsx +++ b/interface/src/contexts/authentication/Authentication.tsx @@ -1,4 +1,4 @@ -import { useCallback, useEffect, useMemo, useState } from 'react'; +import { useCallback, useEffect, useState } from 'react'; import type { FC } from 'react'; import { useNavigate } from 'react-router'; @@ -88,21 +88,18 @@ const Authentication: FC = ({ children }) => { void refresh(); }, [refresh]); - const obj = useMemo( - () => ({ - signIn, - signOut, - refresh, - refreshVersions, - ...(me && { me }), - ...(versions && { versions }) - }), - [signIn, signOut, me, refresh, refreshVersions, versions] - ); - if (initialized) { return ( - + {children} );