feat(ngrx lib): add init function

This commit is contained in:
thomas laforge
2022-12-17 20:10:34 +01:00
parent df832c6850
commit d16ea1dcd0
3 changed files with 23 additions and 3 deletions

View File

@@ -71,6 +71,16 @@ export type CallState = LoadingState | ErrorState;
## API
### initialization
##### setInitState
The `setInitState` method lets you initialize your custom state if you are not using the constructor.
```typescript
setInitState = (state: T): void
```
### updater
##### startLoading