You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
class UIStore {
state
setState
constructor() {
const [state, setState] = createStore({
init: false,
})
this.state = state // <-- ESLint Warning
this.setState = setState
}
...
ESLint returns for the state line
warning The reactive variable 'state' should be used within JSX, a tracked scope (like createEffect), or inside an event handler function, or else changes will be ignored solid/reactivity
To Reproduce
Just try the code above, config is default
import solid from 'eslint-plugin-solid/configs/typescript'
Expected behavior
It should be OK.
Environment (please complete the following information):
OS: macOS 15.4.1
Node version (node --version): v22.13.1
eslint 9.25.1
eslint-plugin-solid 0.14.5
The text was updated successfully, but these errors were encountered:
Uh oh!
There was an error while loading. Please reload this page.
Describe the bug
I'm using the following classic pattern:
ESLint returns for the state line
To Reproduce
Just try the code above, config is default
Expected behavior
It should be OK.
Environment (please complete the following information):
node --version
): v22.13.1eslint 9.25.1
eslint-plugin-solid 0.14.5
The text was updated successfully, but these errors were encountered: