Giter VIP home page Giter VIP logo

Comments (3)

irskep avatar irskep commented on April 19, 2024 1

It really worries me that that navigation requires special JS routing rather than just working with browser events. It means you have to implement hacks like the one you suggested, or the one in the referenced PR.

from react-navigation.

ericvicenti avatar ericvicenti commented on April 19, 2024

Can somebody help fix this? Should be pretty easy to add a special case in the onClick handler:

https://github.com/react-community/react-navigation/blob/master/website/src/Link.js#L30

from react-navigation.

ericvicenti avatar ericvicenti commented on April 19, 2024

@irskep , sorry I'm a bit confused what the hack is.

Because of the server rendering, React Navigation works great in browsers without JS. So I would not say it requires special JS routing.

For browsers that do have JS, we can improve page load time by blocking the browser navigation, and switching pages in JS. This will also allow us to implement animations and make the app feel faster.

There is no other standard way to speed up page transitions, so this technique is not considered a hack. It is a web standard and is supported by all major browsers.

from react-navigation.

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.