Skip to content
This repository has been archived by the owner on Feb 28, 2022. It is now read-only.

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
MikeRyanDev committed Mar 21, 2016
1 parent fa53d07 commit 50af4f7
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,9 @@ npm install ngrx-store-hmr --save-dev
In order for your application to have HMR support, you need to wrap your bootstrap call in a function that receives an optional HMR state object:

```ts
import { provideStore } from '@ngrx/store';
import { hotModuleReplacement } from 'ngrx-store-hmr';
import { reducer } from './reducer';

// Wrap bootstrap in a function that accept an optional hmrState
function main(hmrState?: any) {
Expand Down

0 comments on commit 50af4f7

Please sign in to comment.