Relay: Question: v 0.8.1 warns when trying to call Relay.injectNetworkLayer

Created on 29 Apr 2016  路  2Comments  路  Source: facebook/relay

I can see some commits related to removing Relay.injectDefaultNetworkLayer from public api and also adding warning if we try to inject network layer more than once.

Should this line of code use Relay.injectDefaultNetworkLayer instead of Relay.injectNetworkLayer to allow us to inject our own network layer with out warning?

bug

Most helpful comment

Thanks very much for catching and reporting this @mailaneel. https://github.com/facebook/relay/pull/1100 should fix this.

All 2 comments

Thanks very much for catching and reporting this @mailaneel. https://github.com/facebook/relay/pull/1100 should fix this.

@wincent thanks for quick fix

Was this page helpful?
0 / 5 - 0 ratings

Related issues

fedbalves picture fedbalves  路  3Comments

sgwilym picture sgwilym  路  4Comments

MartinDawson picture MartinDawson  路  3Comments

brad-decker picture brad-decker  路  3Comments

janicduplessis picture janicduplessis  路  3Comments