2017-08-27 22 views
0

我還沒有找到解釋關於史詩的詳細說明的單個教程。在哪裏我可以找到教程在雷克斯觀測谷歌史詩?

onst pingEpic = action$ => 
    action$.filter(action => action.type === 'PING') 
    .delay(1000) // Asynchronously wait 1000ms then continue 
    .mapTo({ type: 'PONG' }); 

// later... 
dispatch({ type: 'PING' }); 
+0

你使用框架?對於angular-redux,你可以在這裏找到一個例子:https://github.com/angular-redux/store/blob/master/articles/epics.md和ngrx(效果)在這裏:https://github.com /ngrx/platform/blob/master/docs/effects/README.md –

回答

1

Our documentation包含[我們希望是什麼]好的文檔,假設你已經有了RxJS有深刻的理解。 Have you taken a look?

我注意到你也標記了Angular。你不必使用angular-redux來使用redux和redux-observable,但是如果你這樣做,他們也有some short docs about using it with redux-observable

如果您在redux-observable文檔中沒有回答具體問題,請隨時將其作爲Stack Overflow問題提出來! :)

+0

謝謝jayphelps –

相關問題