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:
parent
6a4e44ee0a
commit
b19800681f
4 changed files with 18 additions and 9 deletions
|
@ -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'),
|
||||
}
|
||||
);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue