From ccdd8f8b180d639e7403474dfccad7f6266c0394 Mon Sep 17 00:00:00 2001 From: Chris Bobbe Date: Tue, 9 Mar 2021 12:25:19 -0500 Subject: [PATCH] flow [nfc]: Use `$FlowIgnore` where we used to use `$FlowMigrationFudge`. As we said we'd do (in a recent commit that removed `$FlowMigrationFudge`) as soon as `$FlowIgnore` became available. Well, it's available now: the recent upgrade to Flow v0.128 brought us facebook/flow@ba78ab9bf, which adds `$FlowIgnore` to the standard/acceptable suppression syntax. --- src/boot/store.js | 4 ++-- src/redux-persist-migrate/index.js | 6 +++--- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/src/boot/store.js b/src/boot/store.js index 6adb6f55009..c1f538d2941 100644 --- a/src/boot/store.js +++ b/src/boot/store.js @@ -173,7 +173,7 @@ const migrations: {| [string]: (GlobalState) => GlobalState |} = { ...state, accounts: state.accounts.map(a => ({ ...a, - /* $FlowFixMe[prop-missing]: `a.realm` is a string until + /* $FlowIgnore[prop-missing]: `a.realm` is a string until migration 15 */ realm: a.realm.replace(/\/+$/, ''), })), @@ -211,7 +211,7 @@ const migrations: {| [string]: (GlobalState) => GlobalState |} = { ...state, accounts: state.accounts.map(a => ({ ...a, - /* $FlowFixMe[incompatible-call]: `a.realm` will be a string + /* $FlowIgnore[incompatible-call]: `a.realm` will be a string here */ realm: new URL(a.realm), })), diff --git a/src/redux-persist-migrate/index.js b/src/redux-persist-migrate/index.js index 96737c67b8f..25dcb183aed 100644 --- a/src/redux-persist-migrate/index.js +++ b/src/redux-persist-migrate/index.js @@ -75,9 +75,9 @@ export function createMigrationImpl( throw new Error('createMigration: bad arguments'); } if (action.type === REHYDRATE) { - // $FlowFixMe[prop-missing] - // $FlowFixMe[incompatible-exact] - /* $FlowFixMe[incompatible-type] + // $FlowIgnore[prop-missing] + // $FlowIgnore[incompatible-exact] + /* $FlowIgnore[incompatible-type] this really is a lie -- and kind of central to migration */ const incomingState: State = action.payload; const incomingVersion = parseInt(versionSelector(incomingState), 10);