Skip to content

Commit

Permalink
expandActionRoot and expandStateRoot become false by default
Browse files Browse the repository at this point in the history
  • Loading branch information
zalmoxisus committed Oct 19, 2016
1 parent 815d526 commit 6413dfb
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -52,8 +52,8 @@ Name | Description
`theme` | Either a string referring to one of the themes provided by [redux-devtools-themes](https://github.com/gaearon/redux-devtools-themes) (feel free to contribute!) or a custom object of the same format. Optional. By default, set to [`'nicinabox'`](https://github.com/gaearon/redux-devtools-themes/blob/master/src/nicinabox.js).
`select` | A function that selects the slice of the state for DevTools to show. For example, `state => state.thePart.iCare.about`. Optional. By default, set to `state => state`.
`preserveScrollTop` | When `true`, records the current scroll top every second so it can be restored on refresh. This only has effect when used together with `persistState()` enhancer from Redux DevTools. By default, set to `true`.
`expandActionRoot` | When `true`, displays the action object expanded rather than collapsed. By default, set to `true`.
`expandStateRoot` | When `true`, displays the state object expanded rather than collapsed. By default, set to `true`.
`expandActionRoot` | When `true`, displays the action object expanded rather than collapsed. By default, set to `false`.
`expandStateRoot` | When `true`, displays the state object expanded rather than collapsed. By default, set to `false`.

### License

Expand Down
4 changes: 2 additions & 2 deletions src/LogMonitor.js
Original file line number Diff line number Diff line change
Expand Up @@ -67,8 +67,8 @@ export default class LogMonitor extends Component {
select: (state) => state,
theme: 'nicinabox',
preserveScrollTop: true,
expandActionRoot: true,
expandStateRoot: true
expandActionRoot: false,
expandStateRoot: false
};

shouldComponentUpdate = shouldPureComponentUpdate;
Expand Down

0 comments on commit 6413dfb

Please sign in to comment.