Description
The root rendering system currently depends on the client to install preact in their package or monorepo, this is due to some limitation of preact's context system that requires a singleton, and if there are multiple preact installations an error occurs. This causes issues with root native components that rely on context.
We should look into having root render tsx directly and providing minimal hooks that works for server side rendering.
Description
The root rendering system currently depends on the client to install preact in their package or monorepo, this is due to some limitation of preact's context system that requires a singleton, and if there are multiple preact installations an error occurs. This causes issues with root native components that rely on context.
We should look into having root render tsx directly and providing minimal hooks that works for server side rendering.