arunoda / react-komposer

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

Error not rendering #90

Closed merlinstardust closed 7 years ago

merlinstardust commented 8 years ago

I have this code inside a composer to render an error in my app. I'm successfully entering the if statement and printing the error to the console. But for some reason, the error is not rendering in place of the component. Instead, my app continually displays the loading component.

Any ideas?

  console.log('here');
  if (notPermitted) {
    const error = new Error(`You do not have the correct permissions`);
    console.log(error);
    onData(error);
  }
arunoda commented 7 years ago

Could you try that with v2? (Check README) Reopen with more info.