On Pressing LogIn button which is responsible for credentials.anonymous() application freezes

Hello friends,

I am experiencing another problem. As I am using @realm/react I rapped it around AppRovider and UserProvider which has a fallback page as LogInPage. The problem is when I press login button in log in page instead of re-rendering the app and transferring me to the homepage the program freezes and shows an empty screen. The initial AUTH function passes as I checked with the console.log but it does not re-render the app afterwards.

Thank you for your help.