Comments (6)
@andelkocvjetkovic this isn't something that requires intervention from you. No further error handling is required on your-part.
Very simply, the Error is printed out to the console since the application has encountered an error (intentional or not). You can choose to customize how you display the Error to the user using the errorComponent
, but nevertheless an Error has occurred. As such, the error is printed to the console.
from router.
check this issue, maybe it's the same...
from router.
I'm on "@tanstack/react-router": "1.28.1"
, so I don't think it is related
from router.
The issue is present in "@tanstack/react-router": "1.31.1"
as well
from router.
A couple of questions:
- Just to be clear, the issue here is that we are logging the error to the console?
- Why is logging the error to the console bad?
It's important to remember that this is client-sided, so there's no chance of SECRETS being revealed. Also, you'll only ever get here when there has been an error and the errorComponent
has been triggered, and by default,errors
are always printed to the console.
We'd need a valid reason to change this behaviour since some users have hooks that use the output of the console and that this isn't a show-stopping problem or a bug. Its currently, the intended behaviour.
from router.
My question is why I'm getting an 'Uncaught Error' in my console. Is this something I should take care of, and how precisely should I handle this?
Thanks.
from router.
Related Issues (20)
- Module '"@tanstack/react-router"' has no exported member 'PickAsRequired'. HOT 1
- aria-current=page attribute is returned for all links HOT 2
- The test does not work when rendering the router HOT 6
- File base subroutes regression HOT 4
- Context is undefined when search validation fails HOT 1
- Incorrect not found component being rendered HOT 3
- Overlapping Keys Cause Type Issues Using Experimental Intersection
- `Route.fullPath` is typed incorrectly when using path params HOT 8
- Undefined context after redirect HOT 5
- `beforeLoad` does not run when resetting from `errorComponent`
- `matchRoute` from `useMatchRoute` doesn't resolve TS type with pathless (layout) routes HOT 1
- [router-generator] index route underneath layout route inside of route group not working
- URIError: URI malformed HOT 5
- Issue with `useBlocker` when navigating to route with `beforeLoad` and `redirect`
- Updating to 1.34.9 causes issue with useRouter HOT 1
- Can't use $ route params when using Microsoft TFVC
- Typescript: useRouteContext with strict: false
- SSR streaming is throwing error
- `search` seems to be inferring the output type of the `validateSearch` instead of `z.input` HOT 1
- Unexpected behavior with not found component specified in the __root HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from router.