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 has been archived by the owner on Apr 3, 2023. It is now read-only.
Expected behavior
I think LoadingComponent should be visible only when keycloak instance is not initialized AND is still loading. I have my own logic (catching "onInitError" event and redirect to Error Page showing keycloak server is unreachable) and I'm unable to do that with LoadingComponent set on, because children component is never shown.
Describe the bug
I'm stuck on LoadingComponent even though Keycloak init function already failed.
To Reproduce
Steps to reproduce the behavior:
Expected behavior
I think LoadingComponent should be visible only when keycloak instance is not initialized AND is still loading. I have my own logic (catching "onInitError" event and redirect to Error Page showing keycloak server is unreachable) and I'm unable to do that with LoadingComponent set on, because children component is never shown.
react-keycloak/packages/core/src/provider.tsx
Lines 203 to 216 in f2d1594
Desktop (please complete the following information):
Additional context
Simple fix would be use
&&
instead of||
in render functionreact-keycloak/packages/core/src/provider.tsx
Line 207 in f2d1594
but I'm not sure if this change not gonna break any other use cases.
The text was updated successfully, but these errors were encountered: