Open apatrida opened 2 weeks ago
In createScriptLoader the following code:
createScriptLoader
setTimeout(() => spread(script, scriptProps, false, true));
causes a warning about doing reactive things outside a root not disposing of resources. Changing to:
setTimeout(createCallback(() => spread(script, scriptProps, false, true)));
removes the warning.
not-required
We specifically added the timeout to move the call of spread out of the context, as otherwise hydration breaks. Can you please test your fix in a solid-start app with SSG+hydration?
Describe the bug
In
createScriptLoader
the following code:causes a warning about doing reactive things outside a root not disposing of resources. Changing to:
removes the warning.
Minimal Reproduction Link
not-required