BerkeleyTrue / react-redux-epic

37 stars 13 forks source link

Epics stopping after a server call in server side rendering #29

Open christophediprima opened 6 years ago

christophediprima commented 6 years ago

I am using rx-http-request module that works server side unlike Observable.ajax you mention in your readme and I noticed that the epics are stopped after a server call is done. Here is the flow:

  1. Dispatch ACTION_1
  2. Epic1 filtering on ACTION_1 does an http request and map on ACTION_2
  3. Reducer does successfully update 4 Epic2 filtering on ACTION_2 is never executed

If step 2 does no http request the flow works fine.

christophediprima commented 6 years ago

I also tried to use Observable.from isomorphic-fetch. But I have the same issue...

BerkeleyTrue commented 6 years ago

@christophediprima Unfortunately this is a side effect of the way this library detects when epics completes, you are not able to chain epic reactions together.