Skip to content
This repository has been archived by the owner on Nov 2, 2018. It is now read-only.

unstable_batchedUpdates undefined, replaces batchUpdate function #32

Closed
timkrins opened this issue Sep 11, 2015 · 2 comments
Closed

unstable_batchedUpdates undefined, replaces batchUpdate function #32

timkrins opened this issue Sep 11, 2015 · 2 comments

Comments

@timkrins
Copy link

Ran into this issue when working through the react-treasurehunt example on Windows.

injectBatchingStrategy in Relay's GraphQLStoreChangeEmitter.js was for some reason being called with an undefined parameter, causing no updates to occur.

I might be linked to this issue here: facebook/relay#127, but I'm just beginning with Relay/Webpack and have no idea.

I fixed it in my own solution by checking if the function is defined before replacing it.

injectBatchingStrategy: function injectBatchingStrategy(batchStrategy) {
    if(typeof batchStrategy != 'undefined' )
    {
        batchUpdate = batchStrategy;
    }
},
@timkrins
Copy link
Author

Ah, my particular issue with Relay should be fixed in commit facebook/relay@2d82240

@steveluscher
Copy link
Contributor

And fixed for good in facebook/relay@0c9725d! We'll get a new release out today.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants