impress-2020/pages
Matchu 43ae248e87 Migrate /items/[itemId] to Next routing
The tricky part here was that `returnPartialData` seems to behave differently during SSR. On the page itself, this seems to cause us to always get back at least an empty object, but in SSR we can sometimes get null—which means that a LOT of code that expects the item object to exist while in loading state gets thrown off.

To keep this situation maximally clear, I added a bunch of null handling with `?.` to `ItemPageLayout`. An alternative would have been to check for null and put in an empty object if not, but this feels more resilient and more true to the situation.

The search bar here is a bit tricky, but is pretty straightforwardly adapted from how we did the layouts in App.js. Fingers crossed that it works as smoothly as expected when the search page is migrated too! (Right now typing in there is all messy because it hops over to the fallback route and does its whole separate thing.)
2022-09-14 22:26:59 -07:00
..
api Use latest ~owls NC trade values API 2022-09-04 01:35:05 -07:00
internal [WIP] Migrate /internal/assetImage to Next routing 2022-09-14 19:27:48 -07:00
items Migrate /items/[itemId] to Next routing 2022-09-14 22:26:59 -07:00
outfits Oops I broke the wardrobe page lmao! 2022-09-14 19:44:38 -07:00
support Migrate /support/petAppearances to Next.js routing 2022-09-14 19:46:57 -07:00
[[...slug]].tsx [WIP] Move Privacy Policy onto its own Next.js page 2022-09-14 19:16:26 -07:00
_app.tsx [WIP] Move Privacy Policy onto its own Next.js page 2022-09-14 19:16:26 -07:00
_document.tsx Simplify references to PUBLIC_URL 2022-09-14 18:44:43 -07:00
conversion.tsx [WIP] Migrate the conversion page 2022-09-14 19:20:49 -07:00
modeling.tsx [WIP] Migrate /modeling to Next.js routing 2022-09-14 19:52:10 -07:00
privacy.tsx [WIP] Move Privacy Policy onto its own Next.js page 2022-09-14 19:16:26 -07:00
your-outfits.tsx [WIP] Migrate /your-outfits to Next.js routing 2022-09-14 21:55:03 -07:00