Giter Site home page Giter Site logo

Uncaught Error about router HOT 6 CLOSED

andelkocvjetkovic avatar andelkocvjetkovic commented on June 10, 2024
Uncaught Error

from router.

Comments (6)

SeanCassiere avatar SeanCassiere commented on June 10, 2024 1

@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.

hugocostadev avatar hugocostadev commented on June 10, 2024

check this issue, maybe it's the same...

#1480

from router.

andelkocvjetkovic avatar andelkocvjetkovic commented on June 10, 2024

I'm on "@tanstack/react-router": "1.28.1", so I don't think it is related

from router.

andelkocvjetkovic avatar andelkocvjetkovic commented on June 10, 2024

The issue is present in "@tanstack/react-router": "1.31.1" as well

from router.

SeanCassiere avatar SeanCassiere commented on June 10, 2024

A couple of questions:

  1. Just to be clear, the issue here is that we are logging the error to the console?
  2. 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.

andelkocvjetkovic avatar andelkocvjetkovic commented on June 10, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.