redux-saga Questions

2

If i have two sagas waiting for a yield take() on the same action, is there a guarantee which saga will pick up the action first and execute its remaining logic or is random? I need to ensure the f...
Taddeo asked 28/10, 2017 at 19:58

1

Solved

I'm very new to redux-saga and am trying to get a simple demo working that makes an API call and sends the response data to a reducer so it can be saved to the store. It is my understanding that th...
Gast asked 23/10, 2017 at 4:2

1

I am new to React Redux, and All I already did: 1) activate my backend server (localhost:5000) 2) activate my front-end server using npm start (localhost:8080) 3) I tried to dispatch action by u...
Moonraker asked 18/9, 2017 at 3:13

2

Solved

When writing redux-thunk functions, known as thunks there is allot of boilerplate that could be easily abstracted away. For example in most of our async API calls we are doing the following, withou...
Downing asked 25/5, 2016 at 8:16

3

Solved

I start a timer for a stopwatch React component when a START action is dispatched: import 'babel-polyfill' import { call, put } from 'redux-saga/effects' import { delay, takeEvery, takeLatest } fr...
Kayne asked 7/6, 2016 at 21:20

1

Solved

In redux-observable, epics are accepting stream of actions and returning back new stream of actions. In my use-case I need to send analytics event after some action was dispatched and do nothing af...
Vancevancleave asked 9/8, 2017 at 10:33

3

So far I like Redux better than other Flux implementations, and I'm using it to re-write our front end application. The main struggling points that I'm facing: Maintaining the status of API call...
Apiculture asked 5/5, 2016 at 1:29

2

Solved

In order to get 100% coverage of my Saga files I'm looking into how to test watchers. I've been googling around, there are several answers as to HOW to test watchers. That is, saga's that do a tak...
Sepulchre asked 6/3, 2017 at 11:34

1

Solved

Redux saga noob here. I need to create a saga that loads the initial state for the redux store from my API server. This involves using two async sagas: getCurrentUser and getGroups. I need to is...
Spiritualize asked 7/6, 2017 at 3:44

1

Solved

I'm facing a problem with mapStateToProps argument. It seems a very simple error but I'm not able to figure out what's happening. Basically, what I'm trying to do is toggle a sidebar menu with reac...
Corelative asked 3/7, 2017 at 13:16

1

Solved

I created a saga that retrieves a value from the store with select and according to this value runs a statement or another: const {id} = action.payload; try { const cache = yield select(state =&g...
Successor asked 20/6, 2017 at 10:36

1

Solved

In Redux, there is initial action @@INIT. Is possible to dispatch another action (in middleware) when this action occurred? If not, what is best alternative to push action after store is ready?
Dejesus asked 19/6, 2017 at 8:45

1

I have a Saga where I need to do 3 asynchronous requests, then use the responses from the 3 requests in a follow-up request. Here's some psuedo-code to explain: function* useOtherActionsAndSagas(a...
Gibe asked 12/6, 2017 at 11:37

1

I'm working on an app with a login page and the rest of the pages of the app (should be logged in to view). I'm using react-boilerplate. From this example, I edited my asyncInjectors.js file to hav...
Johnette asked 12/5, 2017 at 6:13

1

Solved

How do I wait for both ACTION_A and ACTION_B to be dispatched without knowing which one was dispatched first? I tried const result = yield take([ACTION_A, ACTION_B]) but result is only the first d...
Zone asked 12/5, 2017 at 15:38

1

Solved

I am using redux sagas event channel. I have a specific use case where i want to getStore state when event gets triggered as eventChannel is not generator function i am not able to use select effec...
Outstand asked 5/4, 2017 at 16:11

4

Solved

In my react-redux application, I have a controlled text input. Every time the component changes value, it dispatches an action and in the end, the value comes back through the redux loop and is ren...
Ra asked 24/2, 2017 at 10:17

1

Solved

I have a redux saga API, where by I am connecting to firebase and reading records of data. var roomRef = firebase.database().ref('/Users/' + userid + '/rooms') var rooms = [] roomRef.once('value...
Ferrick asked 11/2, 2017 at 23:53

1

As a TypeScript and redux-thunk user, I am curious about the benefits offered by redux-saga. I'd like to give it a shot but am concerned about the call function and the apparent loss of type safety...
Falda asked 16/1, 2017 at 16:20

1

Solved

I'm building a "secured" application and using redux-saga together with fetchjs for doing the async calls to the backend. My backend returns a 401 status code when the user is not authorized, i wa...
Allsun asked 22/1, 2017 at 18:2

2

Solved

On RxJS - Goals I read that their goal is better debuggability: Goals Provide more debuggable call stacks than preceding versions of RxJS I have just started to use redux-observable which ...
Markitamarkka asked 26/7, 2016 at 12:48

1

Solved

I have an action called initialiseApp which, obviously, initialises the application. There are some things I need from the server, such as the user information, the styles and some details about th...
Orel asked 22/12, 2016 at 12:16

3

Solved

I am trying to test every scenarios my saga could follow, but i am not able to make happens the behaviors i want. This is pretty simple, i have a HTTP request (login), and i want to test the succes...
Frontality asked 26/2, 2016 at 14:30

1

I am new to react redux. Just trying out Redux Saga and encountering some error messages that I couldnt comprehend. This is my rootSaga: import { takeEvery } from 'redux-saga'; import { AUTH_LOAD...
Anosmia asked 27/8, 2016 at 16:2

1

React, redux, redux-saga I dispatch an action, say CREATE_REQUESTED to the store. Redux-saga runs, and makes the async call to the server. After the saga completes, i.e. blocks for the next CREAT...
Brodench asked 8/8, 2016 at 14:50

© 2022 - 2024 — McMap. All rights reserved.