Skip to content
This repository has been archived by the owner on Jun 4, 2024. It is now read-only.

Commit

Permalink
Merge pull request #107 from plotly/redux-devtools
Browse files Browse the repository at this point in the history
Add redux devtools support.
  • Loading branch information
T4rk1n authored Dec 10, 2018
2 parents 4c324db + 4356753 commit cb4d384
Show file tree
Hide file tree
Showing 7 changed files with 262 additions and 253 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,10 @@
All notable changes to this project will be documented in this file.
This project adheres to [Semantic Versioning](http://semver.org/).

## [0.16.0] - 2018-12-07
### Added
- [Redux devtools](https://github.com/zalmoxisus/redux-devtools-extension) support [#107](https://github.com/plotly/dash-renderer/pull/107)

## [0.15.2] - 2018-12-07
### Added
- Source map [#104](https://github.com/plotly/dash-renderer/issues/104)
Expand Down
496 changes: 248 additions & 248 deletions dash_renderer/dash_renderer.dev.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dash_renderer/dash_renderer.dev.js.map

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dash_renderer/dash_renderer.min.js.map

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dash_renderer/version.py
Original file line number Diff line number Diff line change
@@ -1 +1 @@
__version__ = '0.15.2'
__version__ = '0.16.0'
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "dash-renderer",
"version": "0.15.2",
"version": "0.16.0",
"description": "render dash components in react",
"main": "src/index.js",
"scripts": {
Expand Down
7 changes: 6 additions & 1 deletion src/store.js
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,12 @@ const initializeStore = () => {
store =
process.env.NODE_ENV === 'production'
? createStore(reducer, applyMiddleware(thunk))
: createStore(reducer, applyMiddleware(thunk, logger));
: createStore(
reducer,
window.__REDUX_DEVTOOLS_EXTENSION__ &&
window.__REDUX_DEVTOOLS_EXTENSION__(),
applyMiddleware(thunk, logger)
);

// TODO - Protect this under a debug mode?
window.store = store; /* global window:true */
Expand Down

0 comments on commit cb4d384

Please # to comment.