Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Handle empty pageData during HMR (vercel/turborepo#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
- Loading branch information