BerkeleyTrue / redux-epic

Better async and server side rendering in React with Observables
47 stars 9 forks source link

Observable.of(null) triggers addOutputWarning #42

Closed Bouncey closed 7 years ago

Bouncey commented 7 years ago

Returning Observable.of(null) from an epic logs an error to the console.

invariant(
  Observable.isObservable(result),
    `
      Epics should returned an observable but got %s
      Check the ${name} epic
      `,
      result
  );

https://github.com/BerkeleyTrue/redux-epic/blob/master/src/create-epic.js#L102

BerkeleyTrue commented 7 years ago

Seems strange that this would trigger the invariant here. Can you provide some sample code that causes the issue?