eslint (solid/reactivity) warning on nested store

I'm trying to follow the "Advanced" example from https://docs.solidjs.com/concepts/stores and create a nested store:
const [systemStore, setSystemStore] =
createStore<SystemData>(systemData);

const [statsStore, setStatsStore] = createStore(systemStore.stats);
const [systemStore, setSystemStore] =
createStore<SystemData>(systemData);

const [statsStore, setStatsStore] = createStore(systemStore.stats);
But this triggers an eslint warning: "The reactive variable 'systemStore.stats' should be used within JSX, a tracked scope (like createEffect), or inside an event handler function, or else changes will be ignored." I sort of understand what this means, but it's okay, here, right? Also my reactivity seems to be working okay. Is this a false positive or am I doing something wrong?
0 Replies
No replies yetBe the first to reply to this messageJoin

Did you find this page helpful?