Skip to content

idea: use react-virtuoso to display codemirror static (?) #6515

Open
@williamstein

Description

@williamstein

If you try to view a very large file on the share server it is rendered statically using CodeMirror for the markup, then react. This can be slow. I wonder if it is possible to render instead using virtuoso, so only a window of the document is displayed at a given time? I don't know. Basically, use react-virtuoso for the windowing instead of codemirror itself (which is maybe too heavyweight?). Alternatively, we could just end up using normal codemirror (loaded via https://nextjs.org/docs/advanced-features/dynamic-import).

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions