Skip to content

Commit

Permalink
fix: installed apps query not refreshing on mount (#33785)
Browse files Browse the repository at this point in the history
  • Loading branch information
d-gubert authored Nov 4, 2024
1 parent 953c052 commit 3bf45b1
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .changeset/spicy-spiders-search.md
Original file line number Diff line number Diff line change
@@ -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
1 change: 1 addition & 0 deletions apps/meteor/client/providers/AppsProvider/AppsProvider.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -102,6 +102,7 @@ const AppsProvider = ({ children }: AppsProviderProps) => {
},
{
staleTime: Infinity,
refetchOnMount: 'always',
onSettled: () => queryClient.invalidateQueries(['marketplace', 'apps-stored']),
},
);
Expand Down

0 comments on commit 3bf45b1

Please sign in to comment.