-
Notifications
You must be signed in to change notification settings - Fork 41
Description
Feature Request: Enhance withCallState from @angular-architects/ngrx-toolkit to Support Multiple Collections and make a part of core @ngrx/signals package
Issue
Currently, withCallState only accepts a collection with a single string value. However, in large projects, we often need to track the loading state of multiple collections simultaneously.
While it's possible to use multiple withCallState functions, this approach has a significant drawback: the Store currently accepts only 15 inputs. Using withCallState multiple times can quickly reach this limit, making state management inefficient.
Proposed Solution
Extend withCallState to accept an array of strings, allowing developers to manage the state of multiple collections more effectively.
I've already implemented a similar feature in a custom store and shared my approach in this Medium article.
I believe integrating this functionality into the core @ngrx/signals package (instead of relying on @angular-architects/ngrx-toolkit) would be highly beneficial for developers working with complex state management scenarios.
Appreciation
Thanks for all the great work you do @ngrx-toolkit! Looking forward to your thoughts on this.
Related issue already posted on @ngrx/platform