1
0
Fork 0
forked from OpenNeo/impress
impress/src/server/query-tests
Matchu 856d8586e4 cache item data when switching standard colors
Previously, when changing a pet's color, we would refresh the items panel and send a new network request for the item appearances, even though they're all the same. This is because item appearance data is queried by species/color, for ease of specification.

But! Item appearances are //cached// by body ID. So, if this is a standard color, it's not hard to look in the cache for the standard color's body ID!

Now, most color changes are faster and don't flicker the item panel anymore. We do still refresh the panel and send the requests for color changes that _do_ matter though, like standard <-> mutant!
2020-08-31 18:25:42 -07:00
..
__snapshots__ cache item data when switching standard colors 2020-08-31 18:25:42 -07:00
Color.test.js cache item data when switching standard colors 2020-08-31 18:25:42 -07:00
Item.test.js add id to ItemAppearance (+ refactor) 2020-08-28 00:10:00 -07:00
ItemSearch.test.js itemSearchLoaders should prime item loader cache 2020-08-17 01:41:38 -07:00
Outfit.test.js fix bug resolving item fields under pet outfit 2020-07-02 14:33:47 -07:00
Pet.test.js fix bug resolving item fields under pet outfit 2020-07-02 14:33:47 -07:00
PetAppearance.test.js add Support mode to PosePicker 2020-08-28 22:58:59 -07:00
setup.js add snapshot tests for loadBodyName 2020-08-21 16:22:16 -07:00
Species.test.js cache item data when switching standard colors 2020-08-31 18:25:42 -07:00
SpeciesColorPair.test.js split query tests into separately runnable files! 2020-04-25 23:03:58 -07:00