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
The first argument to mapArray is a function that is run within a tracked scope, but eslint-plugin-solid does not recognise it as a tracked scope.
To Reproduce
exportfunctioncreateCustomStore(): Accessor<CustomItem[]>{const[store,updateStore]=createStore({/* ... */});returnmapArray(// warning: This function should be passed to a tracked scope (like createEffect) or an event handler because it contains reactivity (solid/reactivity)()=>store.path.to.field,(item)=>({/* ... */}));}
Expected behavior
mapArray should be recognised as using tracked scopes.
Environment (please complete the following information):
OS: Mac OS 13.1
Node version (node --version): 19.2.0
eslint-plugin-solid version (npm list eslint-plugin-solid/yarn why eslint-plugin-solid): 0.9.1
eslint version (npm list eslint/yarn why eslint): 8.29.0
Additional context
I've split this problem off from #52 as discussed there
The text was updated successfully, but these errors were encountered:
Describe the bug
The first argument to
mapArray
is a function that is run within a tracked scope, buteslint-plugin-solid
does not recognise it as a tracked scope.To Reproduce
Expected behavior
mapArray
should be recognised as using tracked scopes.Environment (please complete the following information):
node --version
): 19.2.0eslint-plugin-solid
version (npm list eslint-plugin-solid
/yarn why eslint-plugin-solid
): 0.9.1eslint
version (npm list eslint
/yarn why eslint
): 8.29.0Additional context
I've split this problem off from #52 as discussed there
The text was updated successfully, but these errors were encountered: