Skip to content

React error when changing page #12

Description

@ribiza

Hi! After introducing this plugin we started seeing this error in the browser console. This happens every time the page is re-rendered, i.e. when an internal link is followed to another page. Running docusaurus 3.10.1.

Warning: Attempted to synchronously unmount a root while React was already rendering. React cannot finish unmounting the root until the current render has completed, which may lead to a race condition.
    at Root (webpack-internal:///./node_modules/docusaurus-markdown-source-plugin/theme/Root.js:15:16)
    at BrowserContextProvider (webpack-internal:///./node_modules/@docusaurus/core/lib/client/browserContext.js:21:127)
    at DocusaurusContextProvider (webpack-internal:///./node_modules/@docusaurus/core/lib/client/docusaurusContext.js:21:496)
    at ErrorBoundary (webpack-internal:///./node_modules/@docusaurus/core/lib/client/exports/ErrorBoundary.js:16:269)
    at App
    at Router (webpack-internal:///./node_modules/react-router/esm/react-router.js:267:30)
    at BrowserRouter (webpack-internal:///./node_modules/react-router-dom/esm/react-router-dom.js:58:35)
    at Router (webpack-internal:///./node_modules/@docusaurus/core/lib/client/clientEntry.js:18:21)
    at r (webpack-internal:///./node_modules/react-helmet-async/lib/index.module.js:18:2915)

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions