Questions tagged [redux-api-middleware]

21 questions
0
votes
1 answer

How to get response after dispatch action?

Is there an option to get back response from redux-api-middleware inside this function? dispatch(someAction()).then(() => { // CONSOLE.LOG RESPONSE HERE });
Adee
  • 357
  • 1
  • 3
  • 13
0
votes
1 answer

redux-api-middleware persiting state from two different API calls

Does anyone know/used redux-api-middleware ? I've got problem with persisting state from two different API calls. I mean I can’t execute “this.props.fetchMessage(‘Hi!’)” and “this.props.fetchUser()” alongside because if the last one is executed then…
PawelS
  • 47
  • 2
  • 10
0
votes
1 answer

When switching expo from develop mode to production my RSAA calls become invalid, why?

Background I am using expo to view my react native app on my android phone. I have implemented a node server that the app retrieves data from. To retrieve data I am using the library redux-api-middleware and storing it in the redux store. I have…
Joe Lloyd
  • 19,471
  • 7
  • 53
  • 81
0
votes
1 answer

Can I use 'take' in redux-sagas to wait to progress? Saga flow jumps back to earlier point in the saga when used as such

I'm using redux-api-middleware for api calls, and redux-sagas for side-effects. For a particular form flow, user can make 2 different changes, that needs to be handled by separate apis. And the whole saga should fail if we one of them fails. I have…
Madhu
  • 1,019
  • 4
  • 10
  • 24
0
votes
3 answers

How does redux-api-middleware add data to the store?

Background I am creating a universal react application with redux and react router. I have most of the application setup with server-side rendering and basic redux actions (modifying a Boolean in the store). Now I would like to make some api calls…
Joe Lloyd
  • 19,471
  • 7
  • 53
  • 81
0
votes
1 answer

redux-api-middleware How to do global settings for endpoint

In redux-api-middleware we can create a API call like below, export function loadUsers() { return { [CALL_API]: { headers: { 'Content-Type': 'application/json' }, endpoint: 'http://localhost:1337/users', method: 'GET', …
Raj Adroit
  • 3,828
  • 5
  • 31
  • 44
1
2