opened
taion
username_0
For example, I may want to check some data in an `onEnter` hook. Right now, this is only easily possible if I'm using `Relay.Store`.
Make Relay environment available in router hooks
issue
created
taion
username_0
Requires https://github.com/reactjs/react-router/issues/3404.
comment
created
idris
username_1
I have a problem where I want to return a not found (404) if something in my relay data is null.  Would this issue resolve that?

Also, you said it's possible if using Relay.Store?  How?
comment
created
taion
username_0
Just use the `Relay.Store` singleton in your `onEnter` hook. This issue is to track providing the non-singleton `Relay.Environment` that you pass into the router.
comment
created
taion
username_0
I'm going to close this issue because there's nothing to track here. This will fall out naturally once we resolve https://github.com/reactjs/react-router/issues/3404... and I'm not going to forget to work on this once https://github.com/reactjs/react-router/issues/3404 gets resolved, given that this is the motivation for that issue.
comment
closed
taion
username_0
issue