Skip to content

Feat: Add multiline support for editing objects and arrays in on.editInspectorState #1016

@spaansba

Description

@spaansba

Problem

Currently, editInspectorState uses an <input/> element for editing values. This works fine for primitives, but becomes difficult when editing objects or arrays.

Proposed solution:

Switch to a <textarea> (or similar multiline input) when the value being edited is an object or array. This would allow:

  • Better visibility of the JSON structure
  • Easier editing with proper line breaks and indentation
  • Reduced chance of syntax errors

Example

Tanstack Devtools already does this:

Recording.2025-12-14.194100.mp4

I'll happily open a PR to add this feature

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