Skip to content

v0.4.0

Compare
Choose a tag to compare
@joshwilsonvu joshwilsonvu released this 17 Jan 02:09
· 359 commits to main since this release

The most exciting release so far! πŸŽ‰ v0.4.0 introduces solid/reactivity, a comprehensive lint rule that deeply analyzes your code and warns on incorrect usages of Solid's reactivity system. Think of it like a counterpoint to React's react/rules-of-hooks; it aims to significantly ease Solid's learning curve.

A little bit of background: Solid's core principle is fine-grained reactivity, a system of state, memos, and effects that work together to efficiently update a UI from incoming events. Solid's reactive primitives, like props, signals, memos, and stores, have to be used in certain lexical scopes called "tracked scopes" so Solid can understand how to react to any changes. While this system is more flexible than some other solutions like React's Rules of Hooks, it can be confusing.

In this rule, we ensure that Solid's reactive primitives are always accessed in tracked scopes, so changes always propagate as intended.

Feedback is encouraged! Though it's tested thoroughly, If this rule is not warning on primitives it should, or warning where it shouldn't, please file an issue here.

If you need to disable solid/reactivity for any reason, add the following to your .eslintrc:

"solid/reactivity": "off"

Full Changelog: v0.3.1...v0.4.0