SSR with netlify functions not hydrating

Hi @luke, thanks for the reply. The “custom code” in this question isn’t the focus — it’s just a short example to easily replicate the issue that I’m having with netlify functions (ie, when they are used to perform server side rendering, the app doesn’t hydrate as normal.). I figured this would help the support team understand my issue more clearly. It seemed to be helpful in similar questions I’ve asked in the past.

The core questions are about netlify features: 1. Why might app hydration not work when performing SSR from a netlify function? 2. Is this supported, or is there a fundimental reason netlify functions can’t perfrom SSR? Thanks