ryansolid / dom-expressions

A Fine-Grained Runtime for Performant DOM Rendering
MIT License
858 stars 125 forks source link

`o[1] is not a function` #270

Closed devinrhode2 closed 1 year ago

devinrhode2 commented 1 year ago

I was originally going to add like 12 screenshots which kinda step through different scenarios I hit while debugging this, but, I've figured out my issue already.

Side note: I'm not sure how to edit this code: Screenshot generateHydrationScript server.js

It seems to be generated by this code somehow: Screenshot hydrationScripts.js

After this hydration script runs, there's another <script> which calls _HY$.set( and passes two arguments.

When those scripts run TWICE, which they shouldn't be, there will be an error among the lines of "is not a function".