Skip to content

Commit

Permalink
add checkSession to deps
Browse files Browse the repository at this point in the history
  • Loading branch information
stavros-liaskos committed Dec 6, 2022
1 parent 4f4c79c commit 93d4077
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/client/use-user.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -214,7 +214,7 @@ export default ({
}, [state.user]);

const { user, error, isLoading } = state;
const value = useMemo(() => ({ user, error, isLoading, checkSession }), [user, error, isLoading]);
const value = useMemo(() => ({ user, error, isLoading, checkSession }), [user, error, isLoading, checkSession]);

return (
<ConfigProvider loginUrl={loginUrl}>
Expand Down

0 comments on commit 93d4077

Please sign in to comment.