Skip to content
This repository was archived by the owner on Nov 21, 2025. It is now read-only.
This repository was archived by the owner on Nov 21, 2025. It is now read-only.

Sidebar Menu is updated in rapidly after hot reload #1299

@theparthy

Description

@theparthy

Bug Report

Describe the bug
The Sidebar is updated rapidly, after hot reload.
When left alone for a while, the browser tab gets slugish.
The links are not Clickable.
After a full reload everything is fine.

To Reproduce

Repo

  1. git clone [email protected]:theparthy/docz-sidebar-issue.git
  2. Run npm run docz dev
  3. got to src/elements/Spinner/index.mdx
  4. remove or add Component in Playground
  5. After hot reload look at sidebar in Elements tab in DevTools. (Screenshot Below)

Expected behavior
Only one update of Sidebar

Environment

  • docz version: [2.1.1]
  • OS: [OSX 10.14.6]
  • Node/npm version: [v12.3.1]
  • Other libraries used
    "reakit": "^1.0.0-beta.13",
    "styled-components": "^4.4.1",
    "styled-icons": "^9.0.1",
    "styled-is": "^1.3.0",
    "styled-system": "^5.1.4"

Additional context/Screenshots

image

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions