Skip to content

Commit

Permalink
feat(notifications): remove preferences from useEffect to avoid dupli…
Browse files Browse the repository at this point in the history
…cate migrations
  • Loading branch information
emacoricciati committed Oct 20, 2024
1 parent 5e52fbb commit d6308c6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/core/components/AppContent.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ export const AppContent = () => {

useEffect(() => {
MigrationService.migrateIfNeeded(preferences, queryClient);
}, [preferences, queryClient]);
}, [queryClient]); // TODO: add preferences to dependencies in the next release

if (MigrationService.needsMigration(preferences)) return null;

Expand Down

0 comments on commit d6308c6

Please sign in to comment.