All Questions
373 questions
1
vote
1
answer
43
views
Angular State of ComponentStore<T>.updater is undefined
I have this ComponentStore
@Injectable({
providedIn: 'root',
})
export class SceneGraphStore extends ComponentStore<SceneGraphState> {
private readonly sceneGraphUtils = new SceneGraphUtils()...
-1
votes
1
answer
64
views
How to access the previous state and current state inside a selector in ngrx selectors? [closed]
I'm wondering if it's possible to access both the previous and current state in ngrx selectors. I haven't been able to find relevant information about this. Is it because I'm using createSelector? Is ...
1
vote
1
answer
89
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 ...
1
vote
0
answers
126
views
Integrating Observables into Blazor Fluxor Effects like in Angular
I come from an Angular background switching over to Blazor. Since I like the redux pattern and have used NGRX with Angular, I'm using Blazor Fluxor for statement management, which works well.
Now I ...
0
votes
0
answers
211
views
NGXS @Selector doesn't update value
I have an issue with the NGXS Selector.
In my state, I call an API to get a table. Because of unified error handling, I first call the API and then defer the actual handling of the request to a ...
1
vote
1
answer
354
views
Dispatching multiple actions in an async/await mergeMap
I'm still new with redux-observable so please excuse me if this is a stupid question.
Basically I need to await some Promises then dispatch multiple actions in an epic. But returning an array of ...
1
vote
3
answers
64
views
Type 'Observable<void>' is not assignable to type 'Observable<IComment[]>' in ngrx
recently i've been trying to learn ngrx and i am following a guide. The code of the guide i'm following is the same as mine, but i am getting this error:
Type 'Observable<void>' is not ...
0
votes
1
answer
116
views
Dispatched action in redux is canceled when an action is dispatched twice
I am facing an issue where I'm dispatching an action twice in my useEffect with different payloads. Both actions are correctly dispatched but only the second one executes my epic function.
Here is my ...
0
votes
1
answer
366
views
Why my action is not dispatched after polling with a takeWhile
I have an angular effect that is triggered by myFirstAction and is supposed to poll till a file was created in the back end, and then dispatch another action:
myEffect = createEffect(() =>
...
0
votes
1
answer
756
views
Tap to dispatch an action as a side effect is not working
I am trying to poll for a process status. I want to keep polling until getting from the server a status that is not IN_PROGRESS.
While in the mean time I want to keep updating the status of the ...
0
votes
1
answer
266
views
Problem accessing data from NgRx reducers in Angular
I have a problem.
I'm using NgRx to handle states for my application, so I'm creating several reducers that contain the admin users, the companies that manage those users, survey types for those ...
1
vote
0
answers
2k
views
TypeError: pipe_1.pipeFromArray(...) is not a function
I try to fetch results from an API and store these into a front-side database with a function that return a Promise. I'm doing it in a Redux Epic with the following code:
export default (action$) =>...
1
vote
2
answers
475
views
Delay time between Observable values - RxJS
I am using redux-oservable and am having an issue with timing on my observables. I want to introduce a delay between the emission of values within an array.
The epic that I'm working with looks like ...
1
vote
0
answers
39
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 ...
1
vote
1
answer
936
views
How are return value from a createEffect are used
I has going through a code and came across a code for createeffect which is returning a value.
I am unable to understand how the return value are used. Can somebody help me in understanding how return ...