From 38f4125ae8552b6bd42530ae01105ea0c26907f7 Mon Sep 17 00:00:00 2001 From: Eduardo San Martin Morote Date: Tue, 22 Sep 2020 11:58:56 +0200 Subject: [PATCH] refactor: remove old fixme --- src/store.ts | 4 ---- 1 file changed, 4 deletions(-) diff --git a/src/store.ts b/src/store.ts index 554f3bac..37b4b36f 100644 --- a/src/store.ts +++ b/src/store.ts @@ -81,7 +81,6 @@ export function buildStore< state => { if (isListening) { subscriptions.forEach(callback => { - // @ts-ignore FIXME: why is this even failing on TS callback({ storeName: id, type: '🧩 in place', payload: {} }, state) }) } @@ -94,14 +93,12 @@ export function buildStore< function patch(partialState: DeepPartial): void { isListening = false - // @ts-ignore FIXME: why is this even failing on TS innerPatch(state.value, partialState) isListening = true // because we paused the watcher, we need to manually call the subscriptions subscriptions.forEach(callback => { callback( { storeName: id, type: '⤵️ patch', payload: partialState }, - // @ts-ignore FIXME: why is this even failing on TS state.value ) }) @@ -119,7 +116,6 @@ export function buildStore< function reset() { subscriptions = [] - // @ts-ignore FIXME: why is this even failing on TS state.value = buildState() } -- 2.47.2