-
-
Notifications
You must be signed in to change notification settings - Fork 2
Description
Similar to our @ngworker/router-component-store and @ngworker/router-signal-store packages, we want a @ngworker/router-store package.
The @ngworker/router-store package should have the same API as the other packages:
- A
RouterStoreabstract class for dependency injection - A
GlobalRouterStoreimplementation to replace@ngrx/router-store - A
LocalRouterStoreimplementation to replaceActivatedRoute provideLocalRouterStore()andprovideGlobalRouterStore()for providers
The package must have no rxjs dependency except in tests. Instead, it should use Angular Signals from the @angular/core package. This is similar to @ngworker/router-signal-store except @ngworker/router-store should have no @ngrx/* dependency except in tests.
Use the @nx/angular:library generator to generate the library. Use the as-provided option to determine the path instead of derived.
Always test the npm ci command to verify the lockfile check formatting. Also check formatting, and run other CI scripts in package.json.
In the initial commit, you can leave out unit tests except for a selectors.spec.ts file similar to those for the other packages.