Solid-start apps currently boostrap through a side-effect of importing entry-client.HASH.js with script tag in the HTML:
<script type="module" async="" src="/assets/entry-client.e2045c51.js"></script>
This script module is a result of bundling the following code:
import { mount, StartClient } from "solid-start/entry-client";
mount(() => <StartClient />, document);
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:
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=modulewill 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: