solidjs-community / eslint-plugin-solid

Solid-specific linting rules for ESLint.
MIT License
206 stars 24 forks source link

`solid/reactivity` warning while directly mutating a `createMutable` state #99

Open seahindeniz opened 1 year ago

seahindeniz commented 1 year ago

Describe the bug

When I try to update a property to trigger an update, ESLint gives a warning image

To Reproduce

Using recommended setup and following the documentation about createMutable suffice to reproduce https://www.solidjs.com/docs/latest/api#createmutable

Expected behavior No warning for directly mutating. At least from the expected updating facilitators that I specifically declare to update the main state. Like in the state-action principle.

Screenshots

Environment (please complete the following information):

Additional context

linorabolini commented 2 months ago

Thank god this is being addressed. I believe createMutable is an amazing feature no one is talking about. Being able to use reactive plain JS is incredible. But people get afraid of the warnings