SolidJSS
SolidJSโ€ข12mo agoโ€ข
1 reply
Lumphammer (Neil de Carteret)

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);


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?
Was this page helpful?