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 @@ -592,16 +592,18 @@ The assembly is assigned to <xref:Microsoft.AspNetCore.Components.Routing.Router
592592
593593@code {
594594 private List<Assembly> lazyLoadedAssemblies = new();
595+ private bool grantImaharaRobotControlsAssemblyLoaded;
595596
596597 private async Task OnNavigateAsync(NavigationContext args)
597598 {
598599 try
599600 {
600- if (args.Path == "robot")
601+ if (( args.Path == "robot") && !grantImaharaRobotControlsAssemblyLoaded )
601602 {
602603 var assemblies = await AssemblyLoader.LoadAssembliesAsync(
603604 new[] { "GrantImaharaRobotControls.{FILE EXTENSION}" });
604605 lazyLoadedAssemblies.AddRange(assemblies);
606+ grantImaharaRobotControlsAssemblyLoaded = true;
605607 }
606608 }
607609 catch (Exception ex)
@@ -644,16 +646,18 @@ The assembly is assigned to <xref:Microsoft.AspNetCore.Components.Routing.Router
644646
645647@code {
646648 private List<Assembly> lazyLoadedAssemblies = new List<Assembly>();
649+ private bool grantImaharaRobotControlsAssemblyLoaded;
647650
648651 private async Task OnNavigateAsync(NavigationContext args)
649652 {
650653 try
651654 {
652- if (args.Path == "robot")
655+ if (( args.Path == "robot") && !grantImaharaRobotControlsAssemblyLoaded )
653656 {
654657 var assemblies = await AssemblyLoader.LoadAssembliesAsync(
655658 new[] { "GrantImaharaRobotControls.{FILE EXTENSION}" });
656659 lazyLoadedAssemblies.AddRange(assemblies);
660+ grantImaharaRobotControlsAssemblyLoaded = true;
657661 }
658662 }
659663 catch (Exception ex)
You can’t perform that action at this time.
0 commit comments