Giter VIP home page Giter VIP logo

Comments (6)

chenkie avatar chenkie commented on August 27, 2024

We get some strange behavior with the Callback route when it's set to false where app will route back to /home upon auth completion but the Callback route hangs in the view. There might be a better way to solve it with the router though so I'm open to suggestions. That being said, navigation between different routes doesn't actually cause a full page refresh in this setup, only on logout does it do so.

from auth0-react-samples.

Siyfion avatar Siyfion commented on August 27, 2024

@chenkie Agreed, there is some weird behaviour with Callback after removing it. Though I don't fully understand why it only causes a forced refresh when logging out? Don't get me wrong, I've tested, and I can see that it does, but I thought it would have caused a full refresh on any route change... why is this?

from auth0-react-samples.

chiss2906 avatar chiss2906 commented on August 27, 2024

I also had some weird behaviour when trying to redirect with history. This solved my problem: #29. And we don't need the forceRefresh anymore ;)

from auth0-react-samples.

Siyfion avatar Siyfion commented on August 27, 2024

Ah good spot @chiss2906! Perhaps we could get a PR to fix this in the example?

from auth0-react-samples.

chiss2906 avatar chiss2906 commented on August 27, 2024

Here you go: #30

from auth0-react-samples.

chenkie avatar chenkie commented on August 27, 2024

Fixed in latest

from auth0-react-samples.

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.