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

@ -177,7 +177,8 @@ export function useDeleteIngresses() {
*/
export function useIngressControllers(
environmentId: EnvironmentId,
namespace?: string
namespace?: string,
cacheTime?: number
) {
return useQuery(
[
@ -192,7 +193,7 @@ export function useIngressControllers(
namespace ? getIngressControllers(environmentId, namespace) : [],
{
enabled: !!namespace,
cacheTime: 0,
cacheTime,
...withError('Unable to get ingress controllers'),
}
);