1
0
Fork 0
mirror of https://github.com/portainer/portainer.git synced 2025-07-24 15:59:41 +02:00

fix(app): improve perceived ingress load time [EE-5805] (#9946)

Co-authored-by: testa113 <testa113>
This commit is contained in:
Ali 2023-07-31 20:18:45 +12:00 committed by GitHub
parent 6a4e44ee0a
commit b19800681f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 18 additions and 9 deletions

View file

@ -44,13 +44,10 @@ export function AppIngressPathsForm({
namespace ? [namespace] : undefined
);
const { data: ingresses } = ingressesQuery;
const ingressControllersQuery = useIngressControllers(
environmentId,
namespace
);
const { data: ingressControllers } = ingressControllersQuery;
const { data: ingressControllers, ...ingressControllersQuery } =
useIngressControllers(environmentId, namespace);
// if some ingress controllers are restricted by namespace, then filter the ingresses that use allowed ingress controllers
// filter for the ingresses that use allowed ingress controllers
const allowedIngressHostNameOptions = useMemo(() => {
const allowedIngressClasses =
ingressControllers