Uh oh!
There was an error while loading. Please reload this page.
refactor(router-core): move router-core into a separate package - #3171
Conversation
1a7588d to
780faf6Compare
This comment was marked as resolved.
This comment was marked as resolved.
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
This comment was marked as resolved.
This comment was marked as resolved.
This comment was marked as outdated.
This comment was marked as outdated.
View your CI Pipeline Execution ↗ for commit a1b74c8.
☁️ Nx Cloud last updated this comment at |
More templates
@tanstack/arktype-adapter@tanstack/create-router@tanstack/directive-functions-plugin@tanstack/eslint-plugin-router@tanstack/create-start@tanstack/history@tanstack/react-cross-context@tanstack/react-router@tanstack/react-router-with-query@tanstack/router-cli@tanstack/router-core@tanstack/router-devtools@tanstack/router-generator@tanstack/router-plugin@tanstack/router-vite-plugin@tanstack/server-functions-plugin@tanstack/start@tanstack/start-api-routes@tanstack/start-client@tanstack/start-config@tanstack/start-plugin@tanstack/start-router-manifest@tanstack/start-server@tanstack/start-server-functions-client@tanstack/start-server-functions-fetcher@tanstack/start-server-functions-handler@tanstack/start-server-functions-server@tanstack/start-server-functions-ssr@tanstack/valibot-adapter@tanstack/virtual-file-routes@tanstack/zod-adaptercommit: |
This comment was marked as resolved.
This comment was marked as resolved.
This comment was marked as resolved.
This comment was marked as resolved.
This comment was marked as resolved.
This comment was marked as resolved.
This comment was marked as resolved.
This comment was marked as resolved.
This comment was marked as resolved.
This comment was marked as resolved.
This comment was marked as resolved.
This comment was marked as resolved.
cf8a80c to
fb5875eComparebirkskyum
commented
Jan 18, 2025
I think basically we're facing a hoisting issue, similar to: |
This comment was marked as resolved.
This comment was marked as resolved.
As stated here:
Meaning that users can have partial types (the It's unlikely I'll find a better solution for hoisting a nested package than the Nuxt/UnJS team who deep dived this. The solutions I see here are basically to treat router-core not as a package, but just as a simple folder that's referenced or otherwise copied into the react-router/solid-router packages. Or alternatively, to duplicate this code for now, and abstract it out at next major release with a recommendation to install |
SeanCassiere
commented
Jan 23, 2025
@birkskyum thanks for your work on this one. I've pushed this to the team for review and we should be able to merge tomorrow. In response to your comment above, we'll wait to see the common practice going forward since this pattern is currently in use by TanStack Table as well, so we'll be to apply whatever changes to the TanStack ecosystem as whole when the "correct" way has been figured out. |
Sounds good. And the CI just passed? Did the tsconfig change do the trick, making react-router a self-contained module/folder? or does it run fewer tests |
SeanCassiere
commented
Jan 23, 2025
One of your commits prior to 538b8b9 did the trick. All that remains were eslint errors. |
This PR introduce support for Solid to be used with TanStack Start. There are several ongoing refactors that can influence the timing of when it's most feasible to merge this. ### Status (build and run e2e/solid-start/basic) - [X] SSR - [x] API Routes - [x] Server Functions - [x] HMR - [x] Streaming (/stream route) - [X] Timely hydration ### Ongoing refactors Refactor to make router packages (aka. client-only features) more agnostic: - #3552 - #3540 - #3538 - #3171 Refactor to make start packages (aka. server features) more agnostic: - #3546 - #3563 - #3565 ### Upstream changes to solid-router - #3592 - #3591 - #3589 - #3616 ### Passing E2E test suites - [x] basic - [x] website - [x] scroll-restoration - [x] server-functions --------- Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com> Co-authored-by: Brenley Dueck <brenleydueck@gmail.com> Co-authored-by: Iha Shin <me@xiniha.dev> Co-authored-by: Brenley Dueck <brenley@crowdbotics.com>
This is a preparation step for:
It moves pieces of shared logic from react-router to router-core, and imports it from there.
The exports in react-router/src/index.tsx are kept as is, by re-exporting functions from router-core, to avoid breaking changes.