Questions tagged [akita]

Akita is a state management pattern, built on top of RxJS, which takes the idea of multiple data stores from Flux and the immutable updates from Redux, along with the concept of streaming data, to create the Observable Data Stores model.

Akita is a state management pattern, built on top of RxJS, which takes the idea of multiple data stores from Flux and the immutable updates from Redux, along with the concept of streaming data, to create the Observable Data Stores model.

Akita encourages simplicity. It saves you the hassle of creating boilerplate code and gives powerful tools with a moderate learning curve, suitable for both experienced and inexperienced developers alike.

46 questions
0
votes
0 answers

Complex observable chain async only subscribes once

I have a bit of a complex chain of observables intending to populate 2 different stores (if null), and to use the objects that are populated to create a third object and feed that into a template with | async. I suspect one of my observables is…
jugglervr
  • 315
  • 1
  • 14
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

Angular with state management - how to use right in child components?

I made a lot of big angular apps using different state libraries and same approach: divided big components by 'common sense', like 'pages' for router and which have some children like grid on left and edit form on right. And each component like this…
itspers
  • 797
  • 1
  • 4
  • 13
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

Akita persistState with capacitor Storage

Is it possible to combine akita persistState function with the capacitor Storage plugin like this? persistState({ storage: Storage});
pablo
  • 1
  • 1
  • 1
0
votes
1 answer

How to dynamically query entities from an akita entity store

I have an entity like this interface IDevice { id: string; name: string; brand: string; plan: 'contract' | 'unlocked'; } and an entity store interface DevicesState extends EntityState { selectedBrand: string | undefined; …
Pushkin
  • 3,336
  • 1
  • 17
  • 30
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
0
votes
1 answer

Add key/value on array object with map

I would add a key value/value on my array objects "members". I am on React JS with Akita. addAge(): Observable { return this.selectAll().pipe( map((allMembers) => ({...allMembers, age:10})) ) } - …
Alkapoun
  • 35
  • 3
0
votes
1 answer

Angular 9 - Datorama Akita display value from store

I am currently trying to set up a simple form in Angular 8 using Akita. Before going further I'll have to tell you that I am not a developer and I am quite new to the Angular world... Not even mentioning the state management concepts. Please keep…
Pierre H.
  • 107
  • 2
  • 12
0
votes
1 answer

akita angular selectQuery catch 404

I'm investigating on an alternative to NgRx. And so far Akita is a good bet but I'm struggling with error managing. Sometimes I want an error to be app wide and sometimes I want it to be managed by a component. In the example below I launch a 404…
Su4p
  • 865
  • 10
  • 24
0
votes
0 answers

Hi I am finding difficulty in running my code in local with angular akita

I have installed angular-akita. I have updated npm to the latest. And I have the latest typescript as well. Please help. on ng-serve --o ERROR in node_modules/@datorama/akita/src/api/entity-store.d.ts(84,5): error TS2416: Property 'update' in type…
TheDoozyLulu
  • 384
  • 2
  • 6
  • 23
0
votes
1 answer

Akita 3 update: " Remove noop - use the of() observable." done what does that mean?

In Akita I could return noop but after the upgrade they left this instruction as they removed noop as a breaking change; Remove noop - use the of() observable. done what does that mean? an example please?
Choco
  • 1,189
  • 1
  • 14
  • 29
0
votes
1 answer

mat-autocomplete displaying always the same name with Akita

I have an issue with the mat-autocomplete of my form. When I write something in the field, it shows two times the last entry of my database with the same name : I'm using Akita - State Management for Angular in my project and I cannot find the…
Johan Rin
  • 1,900
  • 2
  • 20
  • 42