diff --git a/packages/sanity/src/structure/i18n/resources.ts b/packages/sanity/src/structure/i18n/resources.ts index 6001d69fc541..1870ccaf8b17 100644 --- a/packages/sanity/src/structure/i18n/resources.ts +++ b/packages/sanity/src/structure/i18n/resources.ts @@ -378,7 +378,7 @@ const structureLocaleStrings = defineLocalesResources('structure', { /** The document title shown when document title is "undefined" in operation message */ 'panes.document-operation-results.operation-undefined-title': 'Untitled', /** The title of the reconnecting toast */ - 'panes.document-pane-provider.reconnecting.title': 'Connection lost. Reconnecting…', + 'panes.document-pane-provider.reconnecting.title': 'Connection lost. Attempting to reconnect…', /** The loading message for the document not found pane */ 'panes.document-pane.document-not-found.loading': 'Loading document…', /** The text of the document not found pane if the schema is known */ diff --git a/packages/sanity/src/structure/panes/document/DocumentPaneProvider.tsx b/packages/sanity/src/structure/panes/document/DocumentPaneProvider.tsx index 4660477811c8..e94fbef56096 100644 --- a/packages/sanity/src/structure/panes/document/DocumentPaneProvider.tsx +++ b/packages/sanity/src/structure/panes/document/DocumentPaneProvider.tsx @@ -749,11 +749,13 @@ export const DocumentPaneProvider = memo((props: DocumentPaneProviderProps) => { useEffect(() => { if (connectionState === 'reconnecting') { - pushToast({ - id: 'sanity/structure/reconnecting', - status: 'warning', - title: t('panes.document-pane-provider.reconnecting.title'), - }) + setTimeout(() => { + pushToast({ + id: 'sanity/structure/reconnecting', + status: 'warning', + title: t('panes.document-pane-provider.reconnecting.title'), + }) + }, 2000) } }, [connectionState, pushToast, t])