arunoda / react-komposer

Feed data into React components by composing containers.
MIT License
732 stars 70 forks source link

this._stop is not a function #165

Open bhavishhak opened 7 years ago

bhavishhak commented 7 years ago

Using compose function with custom dataloader function. Everythime i start the app this error shows up screen shot 2017-06-21 at 12 34 14 pm

trmjoa commented 7 years ago

Hi,

I just had the same error. Since other might have similar issues I'm posting my solution here:

Make sure your dataloader(s) is not returning anything. The only valid return value is a function that when called (on unmount for instance) will stop the current loading logic. A common error is to return a promise or a object from the dataloader. If you do that, then you will have this error.