-
Notifications
You must be signed in to change notification settings - Fork 1.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
parts of fragments get ignored #365
Comments
The first place I would look at is the network tab on the browser to see if the query is being properly sent and if the server is returning reasonable payloads. |
The query that was sent to server contains the portion with products, but not categories. This is by printing the raw text received on the server side. |
Can you include more information about what your current route looks like and also what's defined on the schema for cc @josephsavona could this be printer related? |
Type Category is basically like this.
Type Viewer:
Router setup:
App queries basically only viewer's id,
There are no babel errors. In fact, if the page is loaded via '/test', then navigated to '/products', then the data fetch would be complete. ProductCategories is only missing when I try to access '/products' from the server directly. |
I understand that the |
@josephsavona This field would be undefined when the query's missing. This is the only place productCategories is used in a fragment. |
Ok, this is definitely weird. Can you produce a minimal repro case? The Relay playground would be perfect for this. |
Ok... I can't seem to reproduce this on the Relay playground. Our team has decided in favor of dropping relay for now, and rely on basic flux architecture, while using graphQL as the query language. So, my hands are pretty much tied at the moment. I'll try to put together a repro case over the weekend. |
@u9520107 Yeah, a repro case would be great to have if possible. Thanks again for filing an issue! |
We have extensive tests that fields aren't removed from queries unless data exists in the cache. There isn't much we can do without a repro case - @u9520107, let us know if you're able to create one! |
Sorry, I am currently caught up on project schedules, and probably won't be able to work on this for a while. I'll try to create a repro case if I can squeeze out some time during next month. |
I've got this strange issue where sometime part of a fragment would be missing from the actual query.
Using react-router-relay for client-side route handling. When the page loads directly into this route, somehow the fragment composer would omit the categories portion, and only fetch back the user and products fields. But if the page initializes in a different route, then navigated to this route, then the query will be whole.
Where should I be looking first to track this problem?
The text was updated successfully, but these errors were encountered: