-
-
Notifications
You must be signed in to change notification settings - Fork 881
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
preload type fix (naive type change) #3526
base: main
Are you sure you want to change the base?
Conversation
Hopefully this gets unblocked after #3528 gets merged by @schiller-manuel |
we are currently moving stuff into router-core since we now not only have the react impl but also the solid one (more to come...) so i am a bit hesitant to merge this. if we merge this, we would also need to apply the same change to the solid one. |
0b55eaa
to
92038aa
Compare
View your CI Pipeline Execution ↗ for commit 92038aa.
☁️ Nx Cloud last updated this comment at |
@schiller-manuel how about doing it in the router-core: is it doable now or when (what is the status of the refactor? BTW I guess the change does make sense, right? |
More templates
@tanstack/arktype-adapter
@tanstack/create-router
@tanstack/create-start
@tanstack/directive-functions-plugin
@tanstack/eslint-plugin-router
@tanstack/history
@tanstack/react-cross-context
@tanstack/react-router
@tanstack/router-cli
@tanstack/react-router-with-query
@tanstack/router-core
@tanstack/router-devtools
@tanstack/router-generator
@tanstack/router-plugin
@tanstack/router-utils
@tanstack/router-vite-plugin
@tanstack/server-functions-plugin
@tanstack/solid-cross-context
@tanstack/solid-router
@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-adapter
commit: |
the change makes sense. we should however probably have only a single type that we reference for both the default and the route level prop. |
This PR is meant to bring the
preload
options to reflect the possible values listed in bothdefaultPreload
(below) and the docs (https://tanstack.com/router/v1/docs/framework/react/guide/preloading#supported-preloading-strategies).Currently the
preload
increateFileRoute
allows only to passboolean
which seems wrong (see above):UpdatableRouteOptions
:vs
RouterOptions
:state of this PR
due to flaky e2e tests I'm unable to get them running. I've got one e2e server functions test (
nx run tanstack-start-e2e-server-functions:test:e2e
, unrelated to the change) failing on 30s timeout: https://nx.app/runs/0YaAbzz0ilI need help here.