From 3bf45b13ad3362b0ce4e50ab0629dfd99a237046 Mon Sep 17 00:00:00 2001 From: Douglas Gubert Date: Mon, 4 Nov 2024 16:09:44 -0300 Subject: [PATCH] fix: installed apps query not refreshing on mount (#33785) --- .changeset/spicy-spiders-search.md | 5 +++++ apps/meteor/client/providers/AppsProvider/AppsProvider.tsx | 1 + 2 files changed, 6 insertions(+) create mode 100644 .changeset/spicy-spiders-search.md diff --git a/.changeset/spicy-spiders-search.md b/.changeset/spicy-spiders-search.md new file mode 100644 index 000000000000..d86bc93313c5 --- /dev/null +++ b/.changeset/spicy-spiders-search.md @@ -0,0 +1,5 @@ +--- +'@rocket.chat/meteor': patch +--- + +Fixed an issue where the installed apps list would go stale without a refresh in some cases diff --git a/apps/meteor/client/providers/AppsProvider/AppsProvider.tsx b/apps/meteor/client/providers/AppsProvider/AppsProvider.tsx index 1449c0fb685a..672a794438fa 100644 --- a/apps/meteor/client/providers/AppsProvider/AppsProvider.tsx +++ b/apps/meteor/client/providers/AppsProvider/AppsProvider.tsx @@ -102,6 +102,7 @@ const AppsProvider = ({ children }: AppsProviderProps) => { }, { staleTime: Infinity, + refetchOnMount: 'always', onSettled: () => queryClient.invalidateQueries(['marketplace', 'apps-stored']), }, );