-
-
Notifications
You must be signed in to change notification settings - Fork 1k
Refactor: Move core SSR functions into its own packages #4495
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Conversation
@schiller-manuel as discussed in #4429. Herewith proposed refactor of the generic SSR functions into its own packages |
View your CI Pipeline Execution ↗ for commit 06b39e4.
☁️ Nx Cloud last updated this comment at |
Apologies for the pipeline failures. Hope the lock file was the last of the build issues. Tests and builds run fine locally. |
More templates
@tanstack/arktype-adapter
@tanstack/directive-functions-plugin
@tanstack/eslint-plugin-router
@tanstack/history
@tanstack/react-router
@tanstack/react-router-devtools
@tanstack/react-router-ssr
@tanstack/react-router-with-query
@tanstack/react-start
@tanstack/react-start-client
@tanstack/react-start-plugin
@tanstack/react-start-server
@tanstack/router-cli
@tanstack/router-core
@tanstack/router-devtools
@tanstack/router-devtools-core
@tanstack/router-generator
@tanstack/router-plugin
@tanstack/router-ssr-core
@tanstack/router-utils
@tanstack/router-vite-plugin
@tanstack/server-functions-plugin
@tanstack/solid-router
@tanstack/solid-router-devtools
@tanstack/solid-router-ssr
@tanstack/solid-start
@tanstack/solid-start-client
@tanstack/solid-start-plugin
@tanstack/solid-start-server
@tanstack/start-client-core
@tanstack/start-plugin-core
@tanstack/start-server-core
@tanstack/start-server-functions-client
@tanstack/start-server-functions-fetcher
@tanstack/start-server-functions-server
@tanstack/valibot-adapter
@tanstack/virtual-file-routes
@tanstack/zod-adapter
commit: |
rename the render functions for `toString` and `toStream` to drop the `react` and `solid` prefixes reactRenderToStream -> renderRouterToStream reactRenderToString -> renderRouterToString
This centralizes the SSR generic logic into its own package and enables pure Tanstack Router projects to not depend on Start imports for SSR functions.
This should also be non-breaking as all Start core packages either re-exports these or implements its own functionalities.
Going forward this should enable Start specific changes to the rendering functions to be isolated to Start without adversely affecting Router packages/projects that depends on the SSR functionality.
This PR currently adds 2 new packages: router-core-ssr and react-router-ssr. A similar package, to react-router-ssr, can be created for solid-router going forward if required.