0

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?

user2167582
  • 5,986
  • 13
  • 64
  • 121

1 Answers1

0

StoreModule.forRoot() contains an optional configuration object as input parameter.

 StoreModule.forRoot(reducers, {
      initialState: {} // <---- provide initial state
 }
Pankaj
  • 538
  • 4
  • 13