File tree Expand file tree Collapse file tree 1 file changed +6
-2
lines changed
Expand file tree Collapse file tree 1 file changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -596,13 +596,15 @@ The assembly is assigned to <xref:Microsoft.AspNetCore.Components.Routing.Router
596596
597597@code {
598598 private List<Assembly> lazyLoadedAssemblies = new();
599+ private bool grantImaharaRobotControlsAssemblyLoaded;
599600
600601 private async Task OnNavigateAsync(NavigationContext args)
601602 {
602603 try
603604 {
604- if (args.Path == "robot")
605+ if (( args.Path == "robot") && !grantImaharaRobotControlsAssemblyLoaded )
605606 {
607+ grantImaharaRobotControlsAssemblyLoaded = true;
606608 var assemblies = await AssemblyLoader.LoadAssembliesAsync(
607609 new[] { "GrantImaharaRobotControls.{FILE EXTENSION}" });
608610 lazyLoadedAssemblies.AddRange(assemblies);
@@ -648,13 +650,15 @@ The assembly is assigned to <xref:Microsoft.AspNetCore.Components.Routing.Router
648650
649651@code {
650652 private List<Assembly> lazyLoadedAssemblies = new List<Assembly>();
653+ private bool grantImaharaRobotControlsAssemblyLoaded;
651654
652655 private async Task OnNavigateAsync(NavigationContext args)
653656 {
654657 try
655658 {
656- if (args.Path == "robot")
659+ if (( args.Path == "robot") && !grantImaharaRobotControlsAssemblyLoaded )
657660 {
661+ grantImaharaRobotControlsAssemblyLoaded = true;
658662 var assemblies = await AssemblyLoader.LoadAssembliesAsync(
659663 new[] { "GrantImaharaRobotControls.{FILE EXTENSION}" });
660664 lazyLoadedAssemblies.AddRange(assemblies);
You can’t perform that action at this time.
0 commit comments