upgrade to immer 6.0.8, remove bug workaround

This commit is contained in:
Matt Dunn-Rankin 2020-05-23 10:51:32 -07:00
parent 674107516c
commit 62fc161013
2 changed files with 3 additions and 6 deletions

View file

@ -109,9 +109,6 @@ const outfitStateReducer = (apolloClient) => (baseState, action) => {
}; };
case "wearItem": case "wearItem":
return produce(baseState, (state) => { return produce(baseState, (state) => {
// A hack to work around https://github.com/immerjs/immer/issues/586
state.wornItemIds.add("fake-id-immer#586").delete("fake-id-immer#586");
const { wornItemIds, closetedItemIds } = state; const { wornItemIds, closetedItemIds } = state;
const { itemId } = action; const { itemId } = action;

View file

@ -6187,9 +6187,9 @@ immer@1.10.0:
integrity sha512-O3sR1/opvCDGLEVcvrGTMtLac8GJ5IwZC4puPrLuRj3l7ICKvkmA0vGuU9OW8mV9WIBRnaxp5GJh9IEAaNOoYg== integrity sha512-O3sR1/opvCDGLEVcvrGTMtLac8GJ5IwZC4puPrLuRj3l7ICKvkmA0vGuU9OW8mV9WIBRnaxp5GJh9IEAaNOoYg==
immer@^6.0.3: immer@^6.0.3:
version "6.0.3" version "6.0.8"
resolved "https://registry.yarnpkg.com/immer/-/immer-6.0.3.tgz#94d5051cd724668160a900d66d85ec02816f29bd" resolved "https://registry.yarnpkg.com/immer/-/immer-6.0.8.tgz#3758890d66ed7baed5703b9e0763785a16156478"
integrity sha512-12VvNrfSrXZdm/BJgi/KDW2soq5freVSf3I1+4CLunUM8mAGx2/0Njy0xBVzi5zewQZiwM7z1/1T+8VaI7NkmQ== integrity sha512-wmVdrkqL6OzhX5z2k/c0t8g+YzGy+V8B/r1GRdCTO0UcTiFkB0XVAxpJQT045KaNV2u14HzbLCYKJmt7yVCakg==
import-cwd@^2.0.0: import-cwd@^2.0.0:
version "2.1.0" version "2.1.0"