We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e07b5af commit 3f0b6f6Copy full SHA for 3f0b6f6
packages/node_modules/overmind-angular/src/index.ts
@@ -87,9 +87,9 @@ export class Service<App extends Overmind<any>> {
87
}
88
89
select<T>(expr: (state: App['state']) => T): Observable<T>
90
- select(): Observable<App['state']> {
91
- return this.state$.pipe(
92
- map((value) => (arguments[0] ? arguments[0](value) : value))
93
- )
+ select(): Observable<App['state']>
+ select() {
+ const args = arguments
+ return this.state$.pipe(map((value) => (args[0] ? args[0](value) : value)))
94
95
0 commit comments