Open IgorMinar opened 1 year ago
Just a note that this fix also depends on https://github.com/solidjs/solid/issues/1325 which just got fixed in the Solid repo.
I wonder if this is still valid with all the changes Solid Start has gone through with using Nitro and Vinxi now
Solid-start apps currently boostrap through a side-effect of importing entry-client.HASH.js with script tag in the HTML:
This script module is a result of bundling the following code:
This setup means that we can only bootstrap the application once (because
script type=module
will ever evaluate the top level expressions and statements only once per document).This breaks the cases where we'd like to bootstrap the same solid-start app multiple times within the same document.
We discussed this with @ryansolid and agreed to explore the following to support these use-cases: