Akita is a state management pattern for Angular applications
Questions tagged [angular-akita]
51 questions
5
votes
1 answer
Why are Akita Queries accessed directly in components
I am learning Akita to add state management to an Angular application. When looking at the architecture diagram in the Akita documentation and examples such as this one on the Akita GitHub repo I see that the Query is accessed directly in…

Sam Herrmann
- 6,293
- 4
- 31
- 50
4
votes
2 answers
Delay observable flow while BehaviorSubject value === false
I've got an application that performs HTTP requests every 2 seconds and updates the view. Problem is, that I have to do some user-triggered CSS animations that take approximately one second and often get broken because Angular updates the DOM while…

Klemen Fajs
- 148
- 2
- 6
3
votes
0 answers
Adding an object to nested array using Akita state library - Angular 9
I have the next entity structure inside my Akita Store:
{
id: 1,
values: [
{valueId: 1.1, data: [
{dataId: 1.3, text: 'abc'},
{dataId: 1.4, text: 'cba'}
]}
];
}
I'm trying to add another Object to…

Anna
- 131
- 2
- 11
3
votes
1 answer
Why does Akita statestore return an empty entity rather than updated entity?
I am using Akita as a state store for my Angular application.
I am successfully fetching data from a backend server and populating my store (data is displayed in components) but when I try to update an entity in the store it emits an empty object.
I…

DaFoot
- 1,475
- 8
- 29
- 58
3
votes
1 answer
Which state management library should I use for angular8 application?
i want to using state management in my angular8 application , before do it i research about state management libraries seems NGRX and NGXS and akita.
But I'm confused as to which one to choose !
NGRS most used.
NGXS are more possibilities and easy…

Parsia Shiraz
- 69
- 2
- 13
3
votes
1 answer
Angular resolvers with Akita state management
Due to lacking docs (guards, resolvers, routing almost not documented) I'm struggling with Akita state management and the use of Angular resolvers which I always used so far with routing (when not using state mgmt).
I'm looking at the following…

mare
- 13,033
- 24
- 102
- 191
2
votes
2 answers
@datorama/akita showing error related to rxjs (export which is imported from is not found in rxjs
I was using @datorama/akita to do with my project, everything is working fine until I run the command npm start
Then a lot of errors shows up with the same format as these
./node_modules/@datorama/akita/src/lib/arrayFind.js:31:9-29 - Error: export…

凯文Beno
- 55
- 6
2
votes
1 answer
Angular 10 Not detecting changes when querying from an Akita store
It's quite possible that I've set up my Akita store incorrectly but I have followed the docs pretty closely.
I'm setting some routerLinks to populate dynamically from a store (app behavior depends on updating routes as a user navigates)
Inside the…

jugglervr
- 315
- 1
- 14
2
votes
1 answer
How to add object to the existing dynamic Akita store which contains Array using angular
I'm storing dynamic values in Akita store without creating a Model.
I'm trying to add a object to the existing array from store, I'm new to akita so tried deep cloning of akita store values and then pushed that object to the array and set the…

balajivaishnav
- 2,795
- 4
- 23
- 38
2
votes
1 answer
Akita Observable OnCompleted Never Fires
In my Angular 8 application, I make calls to an Api Service, then write the data to an Akita Entity Store to be used for follow up requests. I do this by using a mergeMap to send the requests in a synchronous manner.
I have some additional requests…

thxmike
- 614
- 1
- 7
- 25
2
votes
2 answers
Observable Async Pipe Not Returning Values
EDIT: DEMO OF THE NON-WORKING CODE
I'm having issues with using the async pipe on an observable. It works in one app but not the other.
The working one can be found here: https://stackblitz.com/edit/angular-ry1dev
The non-working…

JD Carr
- 219
- 3
- 17
2
votes
1 answer
Architecting program so that Angular does not re-render the MediaStream component every time an update is pushed to the store?
The example Angular application I have created demonstrates the problem I am having, this application can be found here
Basically I have two stores, I am using the state management library Akita for these stores. Both are Entity Stores, the first…

Kirkify
- 318
- 2
- 12
1
vote
3 answers
Angular Akita only setting the last value in an array
I am new to Angular with Akita state management. I am trying to set the array of values to the entitystate. but for some reason only the last item in the array is getting set. But the number of values is correct. ie. i have 14 different items in the…

Mukil Deepthi
- 6,072
- 13
- 71
- 156
1
vote
0 answers
angular/akita store nested update
export interface Address {
id: string,
formData: FormData,
addressData: AddressData,
documentsData: DocumentsData
}
export interface AddressData {
professional: AddressProfessional;
}
export interface AddressProfissional {
…

bernlt
- 405
- 2
- 8
- 20
1
vote
1 answer
How to add rxjs pipe operator dynamically with condition?
I'm trying to insert 2 pipe operators into pipe function, but I want to apply the first one by condition, else, only the second one will be applied.
that's the way it looks now without the…

Iris
- 21
- 3