Skip to content

Text editing causes lag maybe due to frequent diagram regeneration #1892

Description

@krabhi1

Editing text in the live editor feels sluggish, likely because the diagram regenerates on every keystroke. Implementing a debounce mechanism (300-500ms delay after typing stops) could significantly improve responsiveness without sacrificing real-time preview.
I'm using mindmap digram here is a sample

---
config:
  theme: base
  layout: tidy-tree
---
mindmap
  root((map))
    Technology
      Software Development
      Data Science & Analytics
      Blockchain
      UI/UX Design
      Game Development

Loading

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