All Questions
3,932 questions
1
vote
1
answer
38
views
Type 'Signal<boolean>' is not assignable to type 'Signal<unknown>'
I am working on an app which is using a pretty simple signal store. It worked the last days but suddenly today I got the following error:
Type 'Signal<boolean>' is not assignable to type 'Signal&...
2
votes
1
answer
52
views
Problem with patchValue and async signals in Angular when user refreshes the page
I'm working with Angular's new Signals feature to manage reactive state in a form.
Everything works fine in most cases. However, there's one issue I'm running into:
When a user refreshes the page ...
1
vote
0
answers
89
views
Auto login with firebase authentication
I'm looking for a great solution for firebase authentication. I use angular with ngrx and firebase. I made authentication with these technologies but when I tried to implement auto login, it actually ...
4
votes
1
answer
96
views
Filtering through 10k objects is slow, but when I return a copy of the array, it's fast, why is that?
I've found a weird occurrence, when working with Ngrx Store and Angular. Basically the goal of my task is shown in this example with about 10k entries in the Person[]:
My goal is to show certain ...
1
vote
1
answer
63
views
Angular 19 with NgRx: NullInjectorError: No provider for _StoreRootModule and CSP violations
I am building a login app using Angular 19 with NgRx for state management. I want to store the authentication state using NgRx. My app is set up with standalone components and uses ApplicationConfig ...
2
votes
1
answer
85
views
Angular - Ngrx signal store
I'm trying out Ngrx signal store. I watched couple of tutorials and read official documentation. Videos on youtube are pretty simple and docs didn't cover that.
I'm trying to use withHooks onInit ...
0
votes
1
answer
53
views
How to trigger a method in one NgRx Signal Store when a property in another store updates?
I am working with NgRx Signal Store in an Angular project, and I need to make one store DashboardStore reactively call a method when a property in another store FilterSelectionStore updates.
Use Case:
...
1
vote
1
answer
40
views
Successfully deleted a record but the response triggers an NgRx Action Failure
I'm working on an Angular application using NgRx to manage state. I have an action that deletes a record through an API call. The deletion is successful (the record is removed), but the NgRx effect ...
2
votes
1
answer
86
views
Angular signalStore and HttpResource
const apiUrl = environment.apiUrl;
export const PublisherStore = signalStore(
withState(initialState),
withComputed(({fetchStatus, saveFetchStatus}) => ({
fetchPending: computed(() => ...
0
votes
1
answer
54
views
In NGRX Signal Store, how can I call a method in a computed value?
In my store feature, if I define a method in the withMethods, then in the later defined withComputed, I can't seem to call one of these methods from a computed value. Is this supported?
1
vote
0
answers
42
views
Signal Store State Persistence Issue After Routing
Angular Signal Store state resets to initial values when navigating between components, despite being provided in 'root'. I'm using patchState to update the store. Why isn't the state persisting ...
1
vote
1
answer
19
views
CreateComponent in async ngFor
I try to implement a tabs bar using infragistics and ngrx.
In my app.component.html :
<igx-tab-item *ngFor="let tab of tabs$ | async" (selectedChange)="selectTab(tab)">
&...
0
votes
0
answers
40
views
NGXS with SSR leaks user data between other users
Im using NGXS for state store in angular. While testing I had firefox logged in and launched chrome in private window. When I navigated, I saw that the ssr was flashing the other user's information ...
0
votes
1
answer
68
views
SignalStore onDestroy hook not fired
I am encountering an issue that I am not quite sure why or how to fix. I have a signal store and I am using the onDestroy hook in order to ensure that we clear out any state data from the store. The ...
2
votes
2
answers
174
views
NgRx signalStore with generic methods
I'm using Angular 19 with Ngrx.
I have multiple store with the same methods to handle the CRUD operations.
I would like than withMethods use an interface to set this store generic.
I tried to pass an ...