Questions tagged [react-thunk]
48 questions
0
votes
1 answer
How to fix an "Could not find 'store'" error in React-Redux?
I'm trying to add React-Router to my application, but getting an error:
Here is a code

MIkle
- 69
- 2
- 8
0
votes
2 answers
How to make infinite scroll fetch function work in order
I want to infinite scroll to fetch any items, the brief step is:
1) scroll at the end of screen.
2) use redux to update items pageIndex.
3) use componentDidUpdate to catch this redux action.
4) append the fetch items to the end of items'…

ccd
- 5,788
- 10
- 46
- 96
0
votes
1 answer
Why don't chaining dispatch Redux-Thunk
Why don't chaining dispatch Redux Thunk? Only work first dispatch and second dispatch is not working.
Store:
const store = createStore(reducers, loadState(), applyMiddleware(thunk));
Action:
export function doSomething(name) {
return function…

mrkacan
- 63
- 8