Using `createScriptLoader` raises `computations created outside a `createRoot`` alert
When I use the
warning.
E.g.:
and then I just have that in my
Whats the problem with
createScriptLoader inside a component as described on https://www.npmjs.com/package/@solid-primitives/script-loader/v/1.0.0 I get the warning.
E.g.:
and then I just have that in my
app.tsx close to the root so it always loads as part of my app.Whats the problem with
createScriptLoader and what would be a safer way of using it?npm
Primitive to load scripts dynamically. Latest version: 2.3.1, last published: 12 days ago. Start using @solid-primitives/script-loader in your project by running
npm i @solid-primitives/script-loader. There are 5 other projects in the npm registry using @solid-primitives/script-loader.
