Skip to content

Add an option to disallow direct state modification from componentΒ #58

@Aaron-Pool

Description

@Aaron-Pool

In the example, I kind of dislike the fact that the component can directly call cart.state.rawItems = [];. Just because I think that can encourage people to modify state in a disorganized manner. Can we get a plugin setting that disallows state being modified from the component (rather than an explicit action)?

Metadata

Metadata

Assignees

Type

No type

Projects

Status

πŸ†• Triaging

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions