Skip to content

Commit

Permalink
Enable focus aware polling also in development mode (#1748)
Browse files Browse the repository at this point in the history
This makes it easier to discover bugs like
#1745 already in development
  • Loading branch information
thomasdax98 authored Feb 26, 2024
1 parent 5dfe483 commit cef3964
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ export default function PageTreeSelectDialog({ value, onChange, open, onClose, d
});

useFocusAwarePolling({
pollInterval: process.env.NODE_ENV === "development" ? undefined : 10000,
pollInterval: 10000,
skip: !open,
refetch,
startPolling,
Expand Down
2 changes: 1 addition & 1 deletion packages/admin/cms-admin/src/pages/pagesPage/PagesPage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ export function PagesPage({
});

useFocusAwarePolling({
pollInterval: process.env.NODE_ENV === "development" ? undefined : 10000,
pollInterval: 10000,
refetch,
startPolling,
stopPolling,
Expand Down

0 comments on commit cef3964

Please sign in to comment.