You can also use a hacker way to solve problems temporarily:
Refresh the current page in your Index page and pass a parameter to the Index to prevent unlimited loop refresh.
You can register this event in any component to listen to the successful login or logout event.
I see that a new ApplicationConfiguration request has been sent, but your menu has not been re-rendered.
hi
Please add below to your Index page:
[Inject]
protected ApplicationConfigurationChangedService ApplicationConfigurationChangedService { get; set; }
protected override async Task OnInitializedAsync()
{
ApplicationConfigurationChangedService.Changed += ApplicationConfigurationChanged;
}
private async void ApplicationConfigurationChanged()
{
// Check currentUser and other info here.
// Write info to logs.
await InvokeAsync(StateHasChanged);
}
hi
Let me confirm by zoom
https://us05web.zoom.us/j/82688415066?pwd=YnFxK2tETWdEVW8rT3VCOWhFeG5aZz09
hi
Have you used Lepton packages above 2.0.3? The latest is 2.0.5.
Thanks, I will try again.
hi
Can you try the code that I shared?
https://github.com/abpframework/abp-samples/blob/master/StoredProcedureDemo/src/StoredProcedureDemo.EntityFrameworkCore/EntityFrameworkCore/Users/AppUserRepository.cs#L16