diff --git a/docs/reactivity.md b/docs/reactivity.md index d0edeb9..185a6eb 100644 --- a/docs/reactivity.md +++ b/docs/reactivity.md @@ -229,11 +229,7 @@ css` function createCustomStore() { const [store, updateStore] = createStore({}); - return mapArray( - [], - // the second argument to mapArray is not tracked - (item) => store.path.to.field - ); + return mapArray([], (item) => store.path.to.field); } const [array] = createSignal([]); diff --git a/test/rules/reactivity.test.ts b/test/rules/reactivity.test.ts index 24cd874..e5d57b8 100644 --- a/test/rules/reactivity.test.ts +++ b/test/rules/reactivity.test.ts @@ -681,11 +681,10 @@ export const cases = run("reactivity", rule, { const [store, updateStore] = createStore({}); return mapArray( [], - // the second argument to mapArray is not tracked (item) => store.path.to.field ); }`, - errors: [{ messageId: "untrackedReactive", line: 8 }], + errors: [{ messageId: "untrackedReactive" }], }, { code: `