fix(router-core): change error type in ErrorComponentProps#4691
Merged
schiller-manuel merged 5 commits intoTanStack:mainfrom Jul 20, 2025
Merged
fix(router-core): change error type in ErrorComponentProps#4691schiller-manuel merged 5 commits intoTanStack:mainfrom
schiller-manuel merged 5 commits intoTanStack:mainfrom
Conversation
Signed-off-by: leesb971204 <leesb971204@gmail.com>
|
View your CI Pipeline Execution ↗ for commit 21d3dff
☁️ Nx Cloud last updated this comment at |
leesb971204
commented
Jul 17, 2025
Signed-off-by: leesb971204 <leesb971204@gmail.com>
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-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-utils
@tanstack/router-vite-plugin
@tanstack/server-functions-plugin
@tanstack/solid-router
@tanstack/solid-router-devtools
@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: |
…r type Signed-off-by: leesb971204 <leesb971204@gmail.com>
21713c1 to
cc66bfd
Compare
leesb971204
commented
Jul 19, 2025
Comment on lines
-1320
to
+1321
| export type ErrorComponentProps = { | ||
| error: Error | ||
| export type ErrorComponentProps<TError = Error> = { | ||
| error: TError |
Contributor
Author
There was a problem hiding this comment.
This reflects @michaelbull ’s suggestion.
The change respects the diversity of error objects returned from the backend while setting Error as the default type to ensure compatibility with existing code.
Contributor
|
thanks for this PR! can you please update the docs docs/router/framework/react/api/router/errorComponentComponent.md |
Signed-off-by: leesb971204 <leesb971204@gmail.com>
Contributor
Author
I updated the type of the |
naoya7076
pushed a commit
to naoya7076/router
that referenced
this pull request
Feb 15, 2026
…4691) fixes TanStack#4686 --------- Signed-off-by: leesb971204 <leesb971204@gmail.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
fixes #4686