Git Product home page Git Product logo

Comments (6)

KyleAMathews avatar KyleAMathews commented on June 29, 2024

Also, @devknoll it'd be good to know if there is a bug for Relay not correctly detecting an in-flight query.

from react-router-relay.

taion avatar taion commented on June 29, 2024

Does this necessarily have to be a react-router-relay thing, though? Presumably a more generic solution is possible for any React Router based site (i.e. render the new whatever into an off-document div or something to handle all the data fetching).

I guess with Relay you have the concept of queries, but it'd be nice if we could find a generic solution that weren't restricted to just this one set of integrations.

from react-router-relay.

KyleAMathews avatar KyleAMathews commented on June 29, 2024

Oh interesting. I hadn't thought about making it generic. That would be really nice and work for more purposes other than just data fetching e.g. loading js chunks for new routes.

Is this possible though? I don't know React Router well enough to know you can load loading multiple routes at the same time.

from react-router-relay.

devknoll avatar devknoll commented on June 29, 2024

@KyleAMathews I was specifically referring to facebook/relay#140

from react-router-relay.

taion avatar taion commented on June 29, 2024

@KyleAMathews

The idea would be that you just load up the next location in an unmounted <div> somewhere, e.g. completely duplicate everything (but invisibly).

from react-router-relay.

taion avatar taion commented on June 29, 2024

I really feel like this would be best handled upstream in a more generic way in React Router. Most of the work here would be matching the route from link, then going from there. Please re-open this issue in some form on the React Router repo - it'd at least give us a better way to move forward on this, because I don't think I can handle this purely in react-router-relay.

from react-router-relay.

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.