You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Dec 18, 2024. It is now read-only.
So trying to disable the profile loading actually disables the logout updates one can expect from a SessionProvider, thereby mandating the explicit use of an onLogout callback.
Expected result
have the profile exposed through the useSession hook
be able to use skipLoadingProfiles while relying SessionProvider to trigger proper updates on logout
Search terms you've used
profile, logout
Bug description
There is a problem with the way the profiles are used in the session init.
The problem is two-fold :
https://github.com/inrupt/solid-ui-react/blob/52cbbc4169abf494a0d00a2c8d6b16a8e6668386/src/hooks/useSession/index.tsx#L37-L47
skipLoadingProfilesflag can be used to remove that behaviour. However, it turns out the profile state is the only variable that triggers a session context update when logging out (the session object does not get updated by a logout, only its internalisLoggedInfield)https://github.com/inrupt/solid-ui-react/blob/52cbbc4169abf494a0d00a2c8d6b16a8e6668386/src/context/sessionContext/index.tsx#L190-L200
So trying to disable the profile loading actually disables the logout updates one can expect from a SessionProvider, thereby mandating the explicit use of an
onLogoutcallback.Expected result
useSessionhookskipLoadingProfileswhile relying SessionProvider to trigger proper updates on logoutAdditional information
Tested with 3.0.0