Comments (6)
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.
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.
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.
@KyleAMathews I was specifically referring to facebook/relay#140
from react-router-relay.
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.
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)
- [react-router] The middleware specified at index 0 does not appear to be a valid React Router middleware HOT 1
- GraphQL error gets stuck in parent route HOT 11
- PrepareParams per-component basis? HOT 2
- Single-Page App Sharing Variables / Single Query HOT 1
- query params routing HOT 1
- Fetch completes but doesn't cause a refresh when navigating through link (fine during refresh) HOT 4
- arguments of type GraphQLList are sent in two separate requests and doesnt work HOT 1
- How do I access the relay environment? HOT 1
- Supporting react-router 4.0 HOT 1
- How to handle "Object not found" cases? HOT 1
- Module not found: 'react-router/lib/getRouteParams' HOT 1
- Named components readyState change at same time even if queries not finished together HOT 2
- Compatible with React-Router latest version(4.x). HOT 1
- Go to url based on data recieved from Relay? HOT 1
- Use with react-router 4.0.0 HOT 5
- Incompatible With React-Router V4
- Make Compatible with Relay 2 HOT 20
- is this even possible ? HOT 1
- React 16 Compatability HOT 1
- Back via Browser History with state persisting? HOT 3
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 react-router-relay.