Skip to content

Types on replaceDataOnPath is not flexible enough #183

@LastLeaf

Description

@LastLeaf

For example, if a data path is nullable, replaceDataOnPath will fail on processing types.

data: {
  info: { field?: { value: string } }
}

replaceDataOnPath(['info', 'field', 'value'], 'xxx') // fails, and very hard to tweak with any types

Metadata

Metadata

Assignees

Labels

need discussionFurther discussion is needed to decide

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions