impress-2020/src/app/components
Matchu eaa4fbb575 Improve item page perf by caching valids in client
Okay, so getting the initial render down time for these faces is annoying, though I might come back to it…

But actually, the _worst_ part isn't the _initial_ render, which just kinda gets processed as part of the page navigation, right?

The _worst_ part is that we render it slowly _twice_: once on page load, as we send the `useAllValidPetPoses` fetch request; and then again when the fetch request ~instantly comes back from the network cache.

The fact that this requires a double-render, instead of just rendering with the cached valids data in the first place (like how our GraphQL client does), causes a second and highly-visible render of a slow-to-render UI!

So, here we update `useAllValidPetPoses` to cache its response in JS memory, similar in principle to how Apollo Client does. That way, we can return the valids instantly on the first render, if you already loaded them from the homepage or the wardrobe page or another item page!
2021-06-11 07:37:49 -07:00
..
HangerSpinner.js fix large-icon visual bug 2021-01-04 03:11:55 +00:00
HTML5Badge.js Fix crash when knownGlitches is undefined 2021-03-13 02:21:32 -08:00
ItemCard.js [WIP] UI for isManuallyNc support tool 2021-02-22 19:11:03 -08:00
OutfitMovieLayer.js LRU caches to speed up outfit layer preload 2021-04-16 20:16:56 -07:00
OutfitPreview.js Oops, fix a perf regression in Hi-Res Mode! 2021-06-11 05:52:53 -07:00
OutfitThumbnail.js Move getVisibleLayers to a new shared directory 2021-05-13 17:35:58 -07:00
PaginationToolbar.js extract PaginationToolbar from ItemSearchPage 2021-05-21 00:50:55 -07:00
SpeciesColorPicker.js Improve item page perf by caching valids in client 2021-06-11 07:37:49 -07:00
SquareItemCard.js Add extra flair to trade matches 2021-06-08 01:23:31 -07:00
useCurrentUser.js Create Cypress command to log in 2021-04-19 02:22:45 -07:00
useOutfitAppearance.js Move getVisibleLayers to a new shared directory 2021-05-13 17:35:58 -07:00
useRequireLogin.js simulate login with IMPRESS_LOG_IN_AS flag 2021-01-05 23:22:03 -08:00
WIPCallout.js Can edit closet list text, incl as Support 2021-03-23 17:48:11 -07:00