react-redux-epic icon indicating copy to clipboard operation
react-redux-epic copied to clipboard

Epics stopping after a server call in server side rendering

Open christophediprima opened this issue 7 years ago • 2 comments

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 avatar Mar 07 '18 08:03 christophediprima

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

christophediprima avatar Mar 08 '18 08:03 christophediprima

@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.

BerkeleyTrue avatar Mar 28 '18 00:03 BerkeleyTrue