From: Eduardo San Martin Morote Date: Tue, 22 Sep 2020 09:58:56 +0000 (+0200) Subject: refactor: remove old fixme X-Git-Tag: v2.0.0-alpha.1~6 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=38f4125ae8552b6bd42530ae01105ea0c26907f7;p=thirdparty%2Fvuejs%2Fpinia.git refactor: remove old fixme --- 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() }