Open dumax315 opened 3 months ago
I was un-able to use useRefetchableFragment due to issues with the scheme that is generated by type-graphql. This would have triggered the closest Suspense any part with Refetchable data to de render. I think that is something I want. Instead I used LoadQuery which updates the Relay cache when complete. This results in no loading indication, but there is no reason that I couldn't manually show a loading indication so I think it is a non issue.
I did a lot of thinking about how this should work in the context of Relay and user data. I decided that each page (directory, building viewer, building maker) should have the user buttons as children components (this is different then in the past where I moved some components outside of the routes).
Here is an example of what I had in my last project:
This is different from how the new project will have anything that requires data inside of a route. I'm doing this because I believe in relay's mission to only need 1 request per page load and I want to see it out.