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

Commit cb4d384

Browse files
authored
Merge pull request #107 from plotly/redux-devtools
Add redux devtools support.
2 parents 4c324db + 4356753 commit cb4d384

File tree

7 files changed

+262
-253
lines changed

7 files changed

+262
-253
lines changed

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,10 @@
22
All notable changes to this project will be documented in this file.
33
This project adheres to [Semantic Versioning](http://semver.org/).
44

5+
## [0.16.0] - 2018-12-07
6+
### Added
7+
- [Redux devtools](https://github.com/zalmoxisus/redux-devtools-extension) support [#107](https://github.com/plotly/dash-renderer/pull/107)
8+
59
## [0.15.2] - 2018-12-07
610
### Added
711
- Source map [#104](https://github.com/plotly/dash-renderer/issues/104)

dash_renderer/dash_renderer.dev.js

Lines changed: 248 additions & 248 deletions
Large diffs are not rendered by default.

dash_renderer/dash_renderer.dev.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dash_renderer/dash_renderer.min.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dash_renderer/version.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
__version__ = '0.15.2'
1+
__version__ = '0.16.0'

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "dash-renderer",
3-
"version": "0.15.2",
3+
"version": "0.16.0",
44
"description": "render dash components in react",
55
"main": "src/index.js",
66
"scripts": {

src/store.js

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,12 @@ const initializeStore = () => {
2727
store =
2828
process.env.NODE_ENV === 'production'
2929
? createStore(reducer, applyMiddleware(thunk))
30-
: createStore(reducer, applyMiddleware(thunk, logger));
30+
: createStore(
31+
reducer,
32+
window.__REDUX_DEVTOOLS_EXTENSION__ &&
33+
window.__REDUX_DEVTOOLS_EXTENSION__(),
34+
applyMiddleware(thunk, logger)
35+
);
3136

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

0 commit comments

Comments
 (0)