I want to set the initial root Store for angular redux instead of calling getSelectorStub
for one selector at a time. What's the best way to do this?
Asked
Active
Viewed 155 times
0

user2167582
- 5,986
- 13
- 64
- 121
1 Answers
0
StoreModule.forRoot()
contains an optional configuration object as input parameter.
StoreModule.forRoot(reducers, {
initialState: {} // <---- provide initial state
}

Pankaj
- 538
- 4
- 13