❔ Avoid "Authorizing..." in Blazor Page (Identity)
I am trying to avoid the loading text "Authorizing..." when going to my index.razor page. I have added ` to the top of the page but does not seem to solve it.
I am able to change the text of the "Authorizing..." in the CascadingAuthenticationView in app.razor but i need to get rid of it on some of my pages because sometimes it takes time to load.
Any tips?
6 Replies
App.razor:
`
You don't have to wrap the entire app in cascading auth, you can wrap the main layout in it and use a separate layout for your index page
This app.razor is from the template i started the project with. Could you give me an example or a link ? Thanks for your answer thats good to know, im just unsure what to do should i remove cascading from app.razor and wrap it around pages that i need it on or ?
create a new layout component and have your index page use that layout
@layout YourLayout
Thank you so much.
Was this issue resolved? If so, run
/close
- otherwise I will mark this as stale and this post will be archived until there is new activity.