impress-2020/src/app/WardrobePage
Matchu 753305dd11 Fix "Untitled outfit" on open outfit in new window
Previously, when you navigated directly to an outfit by typing the URL into the browser or following an external link, the name would stay as "Untitled outfit", even after the outfit loaded.

This was because, when you render an `Editable` Chakra component with `value={undefined}`, it permanently enters "uncontrolled" mode, and providing a value later doesn't change that.

But tbh passing `undefined` down from outfit state wasn't my intention! But yeah, turns out the `?.` operator returns `undefined` rather than `null`, which I guess makes sense!

So, I've fixed this on both ends. I'm now passing more `null`s down via outfit state, because I think that's a more expected value in general.

But also, for the `Editable`, I'm making a point of passing in an empty string as `value`, so that this component will be resilient to upstream changes in the future. (It's pretty brittle to _depend_ on the difference between `null` and `undefined`, as we saw here 😅)
2021-01-17 08:19:47 -08:00
..
support fix large-icon visual bug 2021-01-04 03:11:55 +00:00
index.js Show thumbnail in wardrobe page while outfit loads 2021-01-08 01:23:24 -08:00
Item.js fix large-icon visual bug 2021-01-04 03:11:55 +00:00
ItemsAndSearchPanels.js update chakra imports 2020-12-25 09:08:33 -08:00
ItemsPanel.js Fix "Untitled outfit" on open outfit in new window 2021-01-17 08:19:47 -08:00
OutfitControls.js Back links to Your Outfits, *if* it's yours 2021-01-17 08:04:21 -08:00
PosePicker.js fix dev emotion crasher in wardrobe page 2021-01-05 05:51:54 +00:00
SearchPanel.js log search result errors 2021-01-17 04:47:11 -08:00
SearchToolbar.js fix large-icon visual bug 2021-01-04 03:11:55 +00:00
useOutfitState.js Fix "Untitled outfit" on open outfit in new window 2021-01-17 08:19:47 -08:00
WardrobeDevHacks.js add zone restrict hack tools 2020-08-28 00:12:41 -07:00
WardrobeOutfitPreview.js Keep outfit thumbnail while individual layers load 2021-01-08 02:53:31 -08:00
WardrobePageLayout.js tweak site bg color, to let card elements "pop" 2021-01-04 09:17:54 +00:00