Redux-saga Questions
Ad
How do I make sure that reducer response action is done before navigating to another page?
I'm currently using redux saga with react native and i have a question on how to properly handle the situation where the reducer action is not
Problems with ternary operator in ReactJS
I'm trying to use a ternary operator to show my loading state in reactjsm but i'dont understand why its always true, i'm using reactotron to debug
How to handle common fetch actions inside saga
I'm developping an api consuming web front site. the problem all my api saga were like this :
redux-saga api yield call works, but no data returned
I am now trying to post using redux saga and fetch. i'm using creative-tim's material kit as the default template. the api that you want
Update nested Firestore value (subcollection) using redux-saga-firebase
I'm trying to build a football office pool app and i'm having trouble saving the weekly picks. i'm using
Getting same response from a condition used in Redux firebase saga
I am trying to implement a condition in which i am using firebase as a database. condition work if a username already exists. but currently, it is
Component wont re-render when changes happens to redux store
I have problems with using redux saga with react hooks. it clearly states that useselector() will subscribe to the redux store, and run the
Proper Way in Fetching Initial Data in React Boilerplate Container
I am new with react boilerplate and am using containers and saga to fetch initial data of a page. i am faced with 2 problems when implementing
Standard way of reconnecting to webSocket server in redux-Saga?
I'm trying to connect from my react app to websocket server using redux-saga and want to
Is it possible to initialize React Final Form from a saga?
I'm migrating from redux form to react final form on a project that's using react and redux-saga. a common pattern for initializing forms in the
Ad
dispatch action inside saga watcher after Meteor.call
I want to dispatch action inside meteor.call callback. i'v tried to pass generator function as callback, but does not work.
Redux actions vs redux-saga actions
I am kind of in dilemma when do we need to use redux actions and redux saga actions. i don't mean to ask when to use redux and when to use
How to execute an action after the first one is resolved in saga?
I am working on a project that uses react, redux-saga. in my code, i have to call same action twice. i want to execute them one after the other.
I am trying to migrate from redux-Form to react-Final-Form
As previously i was working with reduxform and then i find out about reactfinalform. so now i am trying to migrate my
Adding properties to created Redux Store in Typescript
I'm having issues adding a property when i create a new redux store in typescript: const bindmiddleware = middleware => { if
How to add multiple sagas to a single container (both saga listen to different actions)
So, i'm new to react-boilerplate and there seems no way to include another saga without effecting the previous saga's functionality (i.e. it
while i try to run react native in android emulator. I get Error type 3. Error: Activity class {com.eg/com.eg.MainActivity} does not exist
Build successful in 10s 154 actionable tasks: 2 executed, 152 up-to-date info connecting to the development server... info starting the
Handle refresh token and failed requests retry when access token expires in redux-saga
I am trying to implement an oauth authentication mechanism with refresh token and access token. i have searched for the solution a lot. but, still
Using delay when mapping over a list in redux-saga
I'm using redux-saga to send a bunch of requests to the server. what i have a map of names to be sent to the server. but i want to wait for 5
How to pass in parameter into saga?
In my react component i have: import react from "react"; import "./app.css"; import { connect } from "react-redux"; function
How should the react component re-render itself when props from redux have been updated?
I have a "checkprops()" function that checks if props are empty or not and renders the view if so. right now runs on every view render,
Ad
redux-saga takeEvery only called when you click on btn, componentDidMount doesn`t call action correct
Sory for my english! i am doing test work on react.js. the task is to make a regular blog. i ran into an unwanted problem. as a rule,
How to know an asynchronous call has finished with redux-saga?
On a button click i dispatch an action to make a get request , i wanna wait for the request to complete before i continue ,whats the right
Efficient way to request back-end for data on input change
This is more of a suggestion asking kind of question! i have a searchbox that user can type stuff in and the get a list of suggestion to choose
How can I get the URL path of image to put in database from Firebase?
How can i take a url of my image to put in database? i can create correctly doing this, but i can't get the url. my code is as below:
How to send component's state as payload to store
I am new to redux so i might have missed this part somewhere. i have a react.component and a redux-saga store with actions start and stop. what
What is the alternative to thunk dispatch in saga?
In my react project, i have the following code. import uuid from 'uuid'; import { set_alert, remove_alert } from './types';
Browser shows redirected url but component not rendered - Redux Saga
I am trying to learn redux saga. i have an edit page and when the form is submitted, it should be redirected to the dashboard page.
Redirect to a specific page after successful action - Redux saga
I have a user profile page where the user can update the data. once the data is submitted, it should be redirected to dashboard page.
Return value from saga to react component
I am new at reactjs. still wrapping my head around all the layers with redux-store and sagas and etc. i am trying to return a simple boolean value
Redux saga call errors when firebase functions directly
I'm getting some strange behaviour when using redux sagas and firebase, and i was just wondering if anyone knows why this occurs.
How to combine multiple Redux Saga calls
How do i combine 2 saga calls that i need to use separately on other pages? i have tried a few things (yield all, etc) based on other so
Ad
How can i do test in redux-sagas
I'm using firebase, and so i'm putting auth as a dependency injection. in my sagas i have this code: export function*
How can I use Redux Saga "call" function when the function name is a reserved word and how do I do chained function calls?
yield action.user.delete() && database.ref(url).remove() i need to use call() in both functions in
In Flutter, is there a root BLoC pattern like root Saga?
I am learning the bloc pattern, and i was working in the past with redux / saga so i know a little bit already, but i cannot find any way to
How to run redux-saga middleware on the any dispatch action?
I have defined following redux saga middleware function in 'usersaga.js' import {call, put, takeevery, takelatest} from
redux-saga and firebase - Can't log the user out in a clean way
As a preface, let me mention that i have never used redux-saga or firebase before today. i'm currently playing around to get a feel
Redux-Saga Getting undefined on componentDidMount()
I'm building a react component which basically needs to get data from database and load into the table
Can I tell when a component's call to redux-saga ends?
While the component is making a call to redux-saga, it tries to expose the load icon and hide the load icon when the call to redux-saga is
How can I use "home" state within "global" reducer?
I have a react, redux-saga, immutable js app. with this architecture, my redux store is like this. global: {
Independent saga call/responses across different instances of same component?
I'm a little new to react, redux, and sagas, but i'm getting the hang of things. i have a component (results.jsx) that
Calling a function from inside the generator function
I need to call the function displayerror from inside a generator function. the code is as follows. function*
how to call a redux saga generator function?
Maybe im missing the point or how sagas work but i'm not sure how to do the following export default function* (){ yield all([
Ad
Error in redux-saga : (0,redux Saga.createSagaMiddleWare) is not a function
I try to use saga in my app but occur below error, i cheked several posts about this subject, but can't solve the problem
How to access state of another reducer in Redux
So i am new to react and i am trying to build a simple shopping app. i am also using redux store and saga. i have two reducers. a
Call combined reselect selector from redux-saga
I am trying to call a combined selector from redux-saga. the idea is that i have two drop downs. choices in first drop down will
Redux - Returns call function informations to update props / state
I am an intermediate developer on react and i would like to have advice on the best practice to update props with set_state in reducer.
How to subscribe redux-saga to action?
I have a problem with redux-sage. cannot manage to subscribe to action. i have this setup for store import { createstore,
html render is not happening
I have getting json response from backend like : {'status': 0, 'type': 'basic_html', 'content': '<h1>hello world
Run Redux action only when two other actions were triggered
I have specified two redux actions called fetch_profile and fetch_categories that run independently on application
How do i add data in the array using saga in my code
I have took the data in an array in saga file , now i want to add the data in the list there is a static data in which the data is in the
redux-saga: redux dispatched action runs and completes only on page load or reload
I dispatch an action on componentwillmount to fetch data from server. the saga fetches data successfully on page exact
take(eventChannel) taking all the actions instead of the emitted result
I am trying to subscribe to firebase onauthstatechanged using the eventchannel in redux-saga, i managed to put a sandbox showing the status
Redux-Saga how to call localStorage.clear method in Saga
I am trying to clear all items stored in localstorage in redux saga method. but it's not working as expected. in theory, if i want to
Ad
What do redux-saga API calls return? (take, for example)
I'm very new to redux-saga and am reading through the documentation. one of the things i'm not understanding is what, specifically, the api calls
Wait for redux action to finish dispatching when using redux saga
I have a redux saga setup which works fine. one of my dispatches is to create a new order, then once that has been created i want to do things
Redux Saga - group similar (but not all) actions into takeLeading / takeLatest
I am currently using redux-saga on a project and i want to use it to also prevent requesting the same resource multiple times. at the
About Redux Async without middleware (redux-thunk, redux-saga... )
Some action have async function like fetch. but, i don't want to use middle ware like redux-thunk or redux-saga. so, i hesitate to use this
Redux-Saga pass headers to axios.post call
I am having some difficulties with redux-saga. i have the following saga: createpostsaga:
Where to run component specific sagas?
In my project we are currently running application wide sagas in store component specific sagas in each component, like this:
Redux-saga firebase onAuthStateChanged eventChannel
How to handle firebase auth state observer in redux saga? firebase.auth().onauthstatechanged((user) => { });
React redux saga - getting some odd behaviour
I am in process of learning how to use reactjs, redux, react-redux and redux-saga. my attempt at this in my public github repo, found here:
How do I dispatch the id in redux saga?
Just getting to know redux saga, how can i pass in my data in the dispatch? currently my root saga looks like this: function*
Redux saga. unable to use yield in a promise 'catch' block
I am pretty new to redux-saga and am getting the error yield is a reserved word in strict mode only inside the axios promise
How to subscribe to a Redux action in a React component
I'm trying to figure out how i could subscribe to a redux action in a react component. i didn't find anything on google so i'm opening an issue
Ad
How can i call a saga for an api call while it is running the previous call?
So the second action is being called while 1st action is running in saga. i do get the response of the 1st action but not that of the second one.
Redux Saga EventChannel: TypeError: (0, _reduxSaga.take) is not a function
I am trying fetching live data from a third party api using websocket using redux saga eventchannel but for some reason i am getting an error like
how to pass urls, params, headers to call() in redux-saga?
Theory regarding working of call() is well explained on many websites. however, i did not found any site which explains accurately with proper
why do i get cannot read property of undefined in mapstatetoprops in redux
After a call to the api , i get data back from the api which is passed back to the action which updates the state in the reducer.
React Native Redux (Saga) initial state not working
I am creating react native app, with redux-saga. although everything run, initial state is not filled, and dispatch also is not working. please
Why do I get given action “Reducer […] returned undefined during initialization”,at the time app loads?
This could be a rookie question. my first experience with redux saga. the store: import { createstore,
Should I run all saga when launch app?
I've just started to learn and use redux-saga, at first i thought it worked this way: first you make action which is connected to saga, then saga
Kick off separate redux-saga on login and logout
I'm learning redux-saga and having a bit of trouble wrapping my head round the correct flow for connectng people to a chat service (chatkit by
Reacotron's displaying actions before sagas
I just downloaded reactotron, but found a pretty strange error(?). to be able to understand it i will describe my process flow:
React redux prevent updating component from old state
I have map component, which map center location is connected to redux state. <yandexmapview ref={this._mapref}
React Redux Store Layout: How to handle "pending" state of "add item" request?
Example store: { todos: { byid: { "1": { id: "1", title: "foo" }, "2": { id: "2", title: "bar" } },
Ad
How to deal with errors using all effect in redux-saga
I'm using redux-saga to start multiple requests concurrently as described in
Redux saga not calling the API
I am trying to use redux-saga to call my api and passing it a parameter. i am using redux-logger and console.log() to
What are the disadvantages of directly calling function inside generator function over wrapping that function inside Call in redux-saga?
From redux-saga doc i got to the conclusion that call function is like the actions which return the plain object and helps in the testing and
Error: Reducer "auth" returned undefined when handling "@@INIT" action. To ignore an action, you must explicitly return the previous state
Can't figure out what i'm going wrong in this. just trying to setup the basic ducks and saga for my project practice.
How to work with combineReducer in ReactRedux? And combineReducers's 'sate' object to the multiple reduces
I have recently started working on react web development application, and started using react redux saga for my application. so the issue is i
Immutable js - Redux-Saga find item by key and update value
I am using redux-saga and immutable.js in my react app. i have notifications array holds the data of every notification created by redux actions
Different behavior to yield a promise between a plain generator and Redux saga
As i know, you can not get the promise by yield a promise in a generator. and the following test proves it is true. the
Redux Saga watcher differences
What's the difference between this sagas watchers: export function* authwatcher() { yield [ takelatest(get_user_start,
How to make an async request using redux-saga
I'm trying to make a request to get some user info with redux sagas. so far i have: function* getuserdetails() { const
Create a Redux-saga listener
I have a update_date action on redux saga. i want to update multiple resources every time that date is modified. i would like to implement a
SSR with React.js (create-react-app, react-router v4, redux and sagas)
I successfully configured client and server. i can generate html with preloaded data but i have a problem with general concept. at
Ad
How to ensure data is not loaded twice in Redux Saga?
Let's say, i have a simple react application with redux and redux-saga. i want to load some data, but want
Adding material-ui/core/Table causes a data exception even though it's not even linked yet
What i started with i have a redux saga generator function that loads my (mock) api data: function*
Saga watcher not receiving or processing dispatched action
I have a watcher saga that is constantly listening for actions of a certain type. this is started up from the saga.run(). when it receives an
Create-React-App shows blank page on WHM/cPanel server
I am trying to deploy a react app into production and it seems i'm running into a problem i can't fix with any of the online answers i researched
get store data and dispatch outer component react native
I need to access redux store data and dispatch function outer the react component (in utils function) i use react native, redux, redux
Why does a redux-saga use put method instead of dispatch?
The demonstration example in the readme file uses a function called
Redux Saga action crashes app
I have a simple react / redux / redux sagas app which uses an api to show a random picture of a dog upon clicking a button.
How to call sagas in order on component?
Problem i want to call func() when i press a increase_number and decrease_number button, but i
reactjs redux Actions must be plain objects
I have a problem "actions must be plain objects. use custom middleware for async actions." i'm using reactjs with this
Cancel of requests through saga
We provide a drop down option at the top..let's say it has options a b c. whenever user changes the drop down option, a saga gets triggered which
Redux Sagas - dispatch undefined
I'm new to redux-sagas and am still trying to get my head round how they work. i'm trying to bind a redux-saga function to one of my components
Ad
how to use redux-saga with async callback function
I want to use redux-saga yield call effect with async function that get the result of this function is call back. ( in this case
React Native / Redux - Can only update a mounted or mounting component
I am just fetching the items from server and displaying them in the list component. the component structure is like
Ad
Blog Categories
Ad