rsnext/packages/next-swc
Justin Ridgewell 98c9d723ff Handle empty pageData during HMR (vercel/turbo#3412)
Our `pageData` HMR process treated an undefined response as an error condition, but if the page doesn't have a `getXyzProps` exported method, then this is the default response. This prevented us from having any pages without page props.

The new code just sends down an empty object, which seems to work for establishing the connection. HMR updates are sent down (and seem to trigger restarts, at least from what I tested with `getStaticProps`).

Fixes WEB-445
2023-01-21 06:47:38 +00:00
..
crates Handle empty pageData during HMR (vercel/turbo#3412) 2023-01-21 06:47:38 +00:00