impress/src/app/WardrobePage
Matchu c8feb9a7e0 Fix infinite loop when searching for Markings
Oops, we did an in-place sort on the search variables we passed to Apollo! This meant that Apollo's first read of the variables wouldn't match later reads, so it would always decide the variables had changed, causing an infinite re-render loop.

Remember to copy existing arrays before sorting! 😅

Incidentally, this only happened for Markings, by coincidence: it's the only (I think) searchable zone label with multiple zone IDs, that don't sort alphabetically the same as they sort numerically. This `.sort()` sorts them alphabetically, whereas they come in numerical order in `allZones`, because that's the order the GQL server returns them in `build-cached-data.js`.
2021-05-13 00:28:06 -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 Warn user of unsaved outfit changes 2021-05-04 16:31:48 -07:00
OutfitKnownGlitchesBadge.js Oh right, stop leaving console.log lying around 2021-05-03 14:57:10 -07:00
PosePicker.js Fix PosePicker support modal 2021-04-30 12:48:49 -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