Skip to content

Bitmask-based change tracking breaks svelte-devtools #4041

Closed
@RedHatter

Description

@RedHatter

The new bitmask-based change tracking in version 3.16, while great, causes an issue with svelte-devtools. Now that the ctx object is a simple array I have no way to map the values back to their original names.

For example, previously a user might see something like this

State
string: "testing"
number: 5

Now in 3.16 they would instead see

State
0: "testing"
1: 5

One possible solution could be to expose some sort of map from ctx index to local name in dev mode.

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