Invalid JavaScript produced when route data has null prototypes
The graphql package generates objects with null prototypes. When these objects are returned from createServerData$, they get serialized as Object.assign(Object.create(null), { ...props... })). Unfortunately, it looks like the code generator is adding an extra right parens ')' after the call to Object.assign(), so this generates a syntax error in the browser.
This only affects the initial HTML; subsequent fetches work fine.
I eventually worked around this problem by post-processing the object to covert all the objects in the response to have normal prototypes.
Based on the Discord chat from a few weeks ago, I think Ryan might have added a fix for this but I am not sure.
I exposed our SolidJS serializer so now we can change how stuff is serialized but I haven't wired it up.
NVM.. I did fix this: https://github.com/ryansolid/dom-expressions/commit/23464e548436e0a59a2fba2113f3877ee2af7b4e