Akita is a state management pattern for Angular applications
Questions tagged [angular-akita]
51 questions
0
votes
0 answers
Is there a standalone alternative to Akita's RouterQuery for Angular?
I think every major state management solution for Angular comes with its own wrapper around ActivatedRoute. For example, Akita comes with RouterQuery and NGRX has Router Store with helper queries that IMHO make access to route/query params a lot…

Volodymyr Usarskyy
- 883
- 8
- 17
0
votes
0 answers
Akita partial update do not call subscribers
I am new to Akita. SO maybe is something very simple!
I got a usager object like this:
export interface User
{
id: number;
username: string;
modules?: Module[];
permissions?: Permission[];
}
This usager are in a Auth Store and…

Pierre-D Savard
- 529
- 3
- 16
0
votes
2 answers
how just execute observable one time
In our project, we use the following pattern: we do not get the value from the observable, we add the value to the store inside.
loadReport() {
return this.http.get(url, { params: httpParams })
.pipe(
tap(
(obj: X) =>…

AlexandrT
- 115
- 6
0
votes
0 answers
Data in the store is restarting after routing to a different page in state management Akita
After updating the store and routing to another page,
the information that I sent to the store was restated,
as you can see the flow is @@INIT twice and not and I don't understand why?
angular 13
the component that I routing has a different…

Yoni
- 155
- 1
- 1
- 8
0
votes
1 answer
How should I use 2 way binding in Angular with Akita readonly objects?
I have an Akita store that gets populated with data from server.
I am trying to get an object from the store and edit it using angular two way binding [()].
Any time I try to change the value of the object (in the template HTML by typing in a field…

DaFoot
- 1,475
- 8
- 29
- 58
0
votes
1 answer
Angular material datatable paginator returns undefined when using Akita Entity Store plugin
I have been stuck with this for two days and I hope someone can point me to a solution. I have an Angular application using Akita for state management and one of the components is tasked with loading a list of customers. I have placed the important…

realnsleo
- 709
- 2
- 12
- 29
0
votes
2 answers
Akita query this.selectAll returning empty list before service call completes
This is my widgetquery.ts
@Injectable({ providedIn: 'root' })
export class WidgetQuery extends QueryEntity {
public Widget$: Observable = this.selectActive().filter(k => !!k);
public WidgetHistorikk$:…

vikingsteve
- 38,481
- 23
- 112
- 156
0
votes
1 answer
Angular: Where to Place akitaConfig
I've tried placing akitaConfig directly in the constructor of my app.component.ts file, which has it being called before anything else, but it doesn't seem to properly configure the data stores created afterwards. I'm trying to set resettable to…

Eric R
- 673
- 2
- 9
- 15
0
votes
1 answer
Angular with Akita and Rxjs having issue with foreach inside outer observable
I am new to Angular with Akita.
I have an application where the users are loaded and set in the store. all user have an initial imageUrl property set to eg: 'http://testxxxxxx'
The component query the store for all users, and pipe to calls a method…

Mukil Deepthi
- 6,072
- 13
- 71
- 156
0
votes
1 answer
How to declare a Query/Service in Akita in order to use it in another module
I'm starting to use Akita in my ionic application.
I've a SessionModule, in which I declare a SessionService, SessionQuery, ...
But I would like to listen to the SessionQuery in my app.component.ts.
I tried to declare everything in my…

J4N
- 19,480
- 39
- 187
- 340
0
votes
0 answers
Sequencing Observables with Schedulers
I'm having trouble sequencing tiers of computation in my app. I'm using an Akita entity store to manage state and then observing changes and piping them through observables to generate the UI state. The overall flow is:
EntityStore.selectAll()
->…

Brian
- 563
- 1
- 5
- 15
0
votes
1 answer
How to update Akita state 'ui' property
I have an Akita state interface set up with a related store, as shown below...
export interface GdTaskState extends EntityState {
dataPage: {
tasksLoaded: boolean;
pageNumber: number;
pageSize: number;
totalTasks:…

user2868835
- 1,250
- 3
- 19
- 33
0
votes
3 answers
Where Akita Store Store data by default without using persistState plugin
I am trying to explore Akita in Angular application. I implemented it for one of my Entity but I am unable to find where Akita saving data in the browser.
I saw one of a plugin to persist-state but if we will not use that where we can find our…

Rishabh Garg
- 706
- 1
- 9
- 28
0
votes
1 answer
how to avoid duplicate entries in akita store?
Before sending API request to insert I want to check the item is already exist in store or not, if not then only send the request to insert.
add(){
const item = {id: 4,name:'test1',description:'description'}
// here i want to check whether…

yog
- 199
- 1
- 2
- 20
0
votes
1 answer
RxJS get array of emissions at group time. Firebase triggers
I'm new into the RxJS world and I'm kinda lost with this. Hope someone can help me out.
I have a source observable (Firebase through AngularFire) which constantly emits me a lot of data (up to 50 or 80 emissions in a 2s window) in random pike times,…

Juan Carlos
- 146
- 2
- 10