You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Since I have been following the latest progress of react-relay, knowing that RelayContext is renamed to RelayEnvironment while adding injectNetworkLayer and injectTaskScheduler methods, it would be so nice if prepareData allows a relayContext to be passed down, with which I can put authorization into headers for each request on server-side.
btw, this module is so inspiring, thank you so much for you work!
The text was updated successfully, but these errors were encountered:
Since v0.6 of isomorphic-relay, you can create a new instance of a Relay network layer (with injected authentication headers/cookies) on each request and pass it as the second argument to IsomorphicRelay.prepareData.
Since I have been following the latest progress of react-relay, knowing that
RelayContext
is renamed toRelayEnvironment
while addinginjectNetworkLayer
andinjectTaskScheduler
methods, it would be so nice ifprepareData
allows arelayContext
to be passed down, with which I can put authorization into headers for each request on server-side.btw, this module is so inspiring, thank you so much for you work!
The text was updated successfully, but these errors were encountered: