Skip to content

Logout button is not visible on first rendering #5

Description

@ilonatommy

The Logout button is in MainLayout. We condition rendering it with answer from the server to

isAuthenticated = await AccountService.IsAuthenticated();

If we're not authenticated, there's no point in displaying it.
We are asking about it in the latest rendering method possible: OnAfterRenderAsync. It looks like that in the first render, it's still too early and the method returns false.

It happens also when we navigate from Login page to the returnUrl:


not anymore, fefffff fixed that part.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions