683 questions
1
vote
1
answer
92
views
Handle refresh token with Redux-observable
I am working on a client app with React, Redux, and Redux-Observable, and I want to make a refresh request every time I receive an AccessDenied exception after the initial request.
The problem is that ...
0
votes
1
answer
95
views
How is this redux observable Epic works?
Now I'm working on website authentication, and I have added access and refresh tokens. I want to create an auto-refresh action to obtain a new access token. So, if my server returns an "access ...
0
votes
1
answer
63
views
How to dispatch two actions in one epic, which could be in the same or in another reducer
I have two ducks (ui and backend) with epics in them.
I need to trigger two actions after finishing backend operations
One of these actions reside in the backend duck, the other in the ui duck.
I ...
1
vote
0
answers
46
views
Rxjs: How to map to multiple actions so they are not processed in parallel
I'm trying to implement card game with redux-observables. And what I'm trying to achieve to draw cards for each player but this needs to be done sequentialy. But they probably run concurently because ...
0
votes
1
answer
241
views
Using async fetch inside a concatMap, does not return multiple actions
I've recently checked this material (https://thecodebarbarian.com/a-beginners-guide-to-redux-observable.html) and tried something with a fetch request the way it says it's supposed to be, e.g.
import {...
0
votes
1
answer
1k
views
Epics not triggering in Redux observable with Redux toolkit
I tried to follow the documentation and this is what I did
middleware/index.ts
import { combineEpics } from "redux-observable";
import userEpic from "./userEpic";
export const ...
3
votes
0
answers
463
views
reduxed-chrome-storage don't work with redux-observable
I'm bootstrapping a manifest-v3 extension project with react/redux and use a redux interface for chrome.storage called reduxed-chrome-storage for state synchronization across extension pages.
I ...
1
vote
0
answers
308
views
how to dispatch action and wait for its completion inside epic of redux-observable
So I am new to "rxjs" and redux-observables (worked with redux-saga before and familiar with the concept of reactive programming).
What I want to know is how can I dispatch an action from an ...
0
votes
0
answers
193
views
React Native - Redux selector not triggering re-render on app resume
I have a fairly standard React Native functional component that uses a selector to retrieve a view model from my Redux store(Using redux-observable for async actions), and render it on changes, pseudo ...
0
votes
0
answers
110
views
How hould I use withLatestFromwith with typescript?
I'm trying to use redux observables with in a new project, but I cant figure out how to use "withLatestFrom". It used to work the way I implemented it but now I get the following error:
'...
2
votes
0
answers
206
views
NextJS getStaticProps, getServerSideProps not currently work with redux-observable
getStaticProps, getServerSideProps not currently work with redux-observable
When am going to dispatch action from getServerSideProps it's fired and getting data but not updating redux reducer state, ...
3
votes
0
answers
144
views
Err Call Api on redux observable using Axios
I'm trying to learn redux-observables but I seem to be having an issue getting my app to return data. I keep getting the error below and I'm not sure where I'm going wrong or what the error actually ...
0
votes
1
answer
59
views
How to share a variable between epics that are in different files?
I'm using redux-observable in my nextjs web application. There is a variable which has to be set in epic1 and accessed later in epic2:
let sharedVariable;
const epic1 = (action$, state$) => {
...
0
votes
1
answer
250
views
Redux-observable Testing and losing my Marbles
I want to test this observable but I get NOTHING back from it:
const fetchUsersApi = (action$: any) => action$.pipe(
ofType(FETCH_USERS),
mergeMap(() => from(
API.graphql(...
1
vote
3
answers
411
views
Redux-Observable testing readonly epics
I would like to test the following epic:
authEpics.logoutEpic = function (action$, _, deps) {
return action$.pipe(
ofType(authActions.logout),
tap(() => {
const { history, browser } ...
2
votes
2
answers
406
views
Emit multiple actions within catchError - Redux Observable
I have my auth function using rxjs epics:
export const authWithEmailPasswordEpic = action$ =>
action$.pipe(
filter(authUser.match),
switchMap(({payload}) =>
defer(() =>
...
0
votes
1
answer
553
views
How do I listen to '@@router/LOCATION_CHANGE' action from typesafe redux-observable epic
I'm trying listen to '@@router/LOCATION_CHANGE' action from typesafe redux-observable epic, and I just don't understand how.
What is the exact action I need to filter? I tried 'filter(...
0
votes
2
answers
355
views
Parallel HTTP requests with limited concurrency in redux-observable epic using rxjs
Have been trying to solve the issue for a while.
Currently I have an array of objects (i call them tiles), which is pretty big.
I have an API endpoint where I should send this objects one by one, this ...
1
vote
1
answer
3k
views
Is React Context API suitable for large scale applications
I am planning to build a large React application which might contain hundreds of components. But not sure what state management system to use between Redux and Context API.
Context API is in-built in ...
2
votes
1
answer
283
views
How to properly type fp-ts ObservableEither#fold?
I'm attempting to use fp-ts and redux-observable to build some epics that process some api requests. I am having an issue with fp-ts-rxjs/ObservableEither#fold where if I do not cast my actions into ...
2
votes
2
answers
384
views
this.schedulerActionCtor is not a constructor
Facing an error
-> this.schedulerActionCtor is not a constructor
I need help with this error.
I get it from epicMiddleware.run(rootEpic) .
Here is the source code - https://github.com/flipflopapp/...
1
vote
1
answer
1k
views
Is Observables is also executed in the same way like promises in the call stack? [closed]
I'm a complete novice when it comes to Javascript. Please assist me in comprehending the concepts of Observables.
Do Observables have a storage location, similar to how Web API requests are saved in ...
4
votes
1
answer
2k
views
Catch all Pending or Rejected actions within a redux-toolkit slice
Aight.. so im pretty new with redux toolkit and I want to catch ALL pending actions in one slice to basically show a loading modal. I know we can do this with redux-saga and probably redux-observable
...
0
votes
3
answers
888
views
Unable to fetch the latest state from different stores at once using Ngrx
I'm using Ngrx in my Angular application to fetch data from the store.
I created multiple stores : context, decision and status to create a functional seperation between objects.
I have a case where ...
0
votes
1
answer
394
views
How to use React ErrorBoundary with redux-observable?
React Error Boundaries don't work with asynchronous code.
But I am using redux-observable and rxjs to fetch my data from my api.
I want to catch the error with the catchError function of rxjs.
Is it ...