Changed renderToPipeableStream implementation in packages/subapp-react/lib/framework-lib.js so it has access to onShellReady and onAllReady methods.
Refactored packages/subapp-react/test/spec/ssr-framework.spec.js tests to work with new renderToPipeableStream implementation.
Removed selective hydration tests from packages/subapp-react/test/spec/ssr-framework.spec.js because React 18 requires hydrateRoot to be called on every SSR component/subapp which makes hydrateServerData prop redundant in this case. Also, data-reactroot isn't getting created on hydrated elements anymore so that test has been removed too.
How to Test
run fyn && fun bootstrap from the project root to build and bootstrap
navigate to packages/subapp-react/lib/framework-lib.js and run fun test
Description
renderToPipeableStream
implementation inpackages/subapp-react/lib/framework-lib.js
so it has access toonShellReady
andonAllReady
methods.packages/subapp-react/test/spec/ssr-framework.spec.js
tests to work with newrenderToPipeableStream
implementation.packages/subapp-react/test/spec/ssr-framework.spec.js
because React 18 requireshydrateRoot
to be called on every SSR component/subapp which makeshydrateServerData
prop redundant in this case. Also,data-reactroot
isn't getting created on hydrated elements anymore so that test has been removed too.How to Test
fyn && fun bootstrap
from the project root to build and bootstrappackages/subapp-react/lib/framework-lib.js
and runfun test