impress-2020/src/app
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
..
cached-data Build cached zones, stop querying on server 2020-08-19 17:50:05 -07:00
components Improve item page perf by caching valids in client 2021-06-11 07:37:49 -07:00
images Add general error message when page crashes 2021-05-05 00:09:09 -07:00
ItemPage Extract SpeciesFacesPicker to a new file 2021-06-11 06:58:12 -07:00
WardrobePage Only show SVG glitch message in hi-res mode 2021-06-08 08:32:30 -07:00
apolloClient.js Create Cypress command to log in 2021-04-19 02:22:45 -07:00
App.js Create /outfit-urls page 2021-05-24 21:07:30 -07:00
ConversionPage.js Only wait for auth on queries that need it 2021-01-21 14:57:21 -08:00
GlobalFooter.js Add Twitter button to footer 2021-03-13 03:14:35 -08:00
GlobalHeader.js Move "Log out" button into the nav menu 2021-01-18 13:51:52 -08:00
HomePage.js Fix caching for homepage Latest Items 2021-06-08 01:59:56 -07:00
ItemPage.js Extract SpeciesFacesPicker to a new file 2021-06-11 06:58:12 -07:00
ItemPageDrawer.js update chakra imports 2020-12-25 09:08:33 -08:00
ItemPageLayout.js Remove unused import 2021-04-07 22:12:03 -07:00
ItemSearchPage.js Add owns/wants badges on SquareItemCard 2021-06-08 01:03:09 -07:00
ItemTradesPage.js Waka item page UI! 2021-04-07 16:48:41 -07:00
ModelingPage.js Separate modeling queries into public vs user data 2021-04-23 12:10:16 -07:00
OutfitUrlsPage.js Switch back to $20/mo copy 2021-06-02 14:26:47 -07:00
PageLayout.js Add general error message for wardrobe crashes 2021-05-05 00:22:28 -07:00
PrivacyPolicyPage.js Privacy policy copy tweak 2021-01-18 06:44:07 -08:00
SupportPetAppearancesPage.js Add total count to /support/petAppearances 2021-04-23 15:37:52 -07:00
UserItemsPage.js Add extra flair to trade matches 2021-06-08 01:23:31 -07:00
UserOutfitsPage.js Only wait for auth on queries that need it 2021-01-21 14:57:21 -08:00
util.js Improve item page perf by caching valids in client 2021-06-11 07:37:49 -07:00