Matchu
995a2b8a3a
Oops, the sequence here was: 1) Save a new outfit 2) The debounced outfit state still contains id=null, which doesn't match the saved outfit, which triggers an auto-save 3) And now again, the debounced outfit state contains the _previous_ saved outfit ID, but the saved outfit has a _new_ ID, so we save the _previous_ outfit again and back and forth forever. Right, ok, simple change: if the saved outfit ID changes, reset the debounced state immediately, so it can't even be out of sync in the first place! (I also considered checking it in the condition, but I didn't really understand what the timing properties of being out of sync due to debouncing would be, and it seemed to not represent the reality I want.) |
||
---|---|---|
.. | ||
cached-data | ||
components | ||
images | ||
WardrobePage | ||
apolloClient.js | ||
App.js | ||
ConversionPage.js | ||
GlobalFooter.js | ||
GlobalHeader.js | ||
HomePage.js | ||
ItemPage.js | ||
ItemPageDrawer.js | ||
ItemPageLayout.js | ||
ItemSearchPage.js | ||
ItemTradesPage.js | ||
ModelingPage.js | ||
PageLayout.js | ||
PrivacyPolicyPage.js | ||
SupportPetAppearancesPage.js | ||
UserItemsPage.js | ||
UserOutfitsPage.js | ||
util.js |