パラメータをajax get requestに渡すのに問題があります。{category: 'cat', type: 'type', searchKey: 'key' }
パラメータを URLに渡す/search
必要があり、以下のコードがあるとします。
action$.ofType('QUERY')
.debounceTime(500)
.switchMap(action =>
ajax.get('/search', {//pass some parameters},)
.map(result => ({
type: 'FETCH_SUCCESS',
payload: result.response,
})),
私はRxJを初めて使用するので、これを行う正しい方法を提案してください。