impress-2020/src/app/WardrobePage
Matchu e5551a6847 Fix performance regression in SpeciesColorPicker
Oops, my cute API idea for `speciesPickerProps` breaks `React.memo`, of course!

We could fix this by having the caller memoize the `speciesPickerProps` object, but that's too unusual and error-prone. We could also fix this by writing a custom function for `React.memo` to determine whether props match, but that seems like overkill when there's only one actual prop we're using here in practice.

So yeah, I've updated `SpeciesColorPicker` to just accept `speciesTestId` and `colorTestId` props instead!

Note that actually this component _is_ still re-rendering too often, because of a Chakra bug I just discovered and reported! So this change won't immediately improve performance, but it should stop re-rendering too often once we _also_ upgrade Chakra after this bug is fixed. https://github.com/chakra-ui/chakra-ui/issues/4080
2021-05-24 17:50:31 -07:00
..
support Add restricted zones to pet appearance support UI 2021-04-29 11:52:25 -07:00
index.js Warn user of unsaved outfit changes 2021-05-04 16:31:48 -07:00
Item.js Add page-reload recovery to *all* code splitting 2021-01-21 14:34:55 -08:00
ItemsAndSearchPanels.js Add general error message for wardrobe crashes 2021-05-05 00:22:28 -07:00
ItemsPanel.js Enable auto-saving while searching for items 2021-05-04 13:28:29 -07:00
OutfitControls.js Fix performance regression in SpeciesColorPicker 2021-05-24 17:50:31 -07:00
OutfitKnownGlitchesBadge.js Move getVisibleLayers to a new shared directory 2021-05-13 17:35:58 -07:00
PosePicker.js Move getVisibleLayers to a new shared directory 2021-05-13 17:35:58 -07:00
SearchPanel.js Fix infinite loop when searching for Markings 2021-05-13 00:28:06 -07:00
SearchToolbar.js Don't auto-select the first item search filter 2021-05-12 23:08:54 -07:00
useOutfitSaving.js Stop adding extras to Your Outfits after save 2021-05-04 18:38:14 -07:00
useOutfitState.js Finish outfit auto-saving! 2021-05-04 12:33:13 -07:00
WardrobeDevHacks.js Lint against console.log 2021-05-03 15:01:49 -07:00
WardrobePageLayout.js Add general error message for wardrobe crashes 2021-05-05 00:22:28 -07:00
WardrobePreviewAndControls.js Add general error message for wardrobe crashes 2021-05-05 00:22:28 -07:00