Skip to content

Commit

Permalink
Deprecate the ability to create a Redux store directly from the exten…
Browse files Browse the repository at this point in the history
…sion

#613
  • Loading branch information
HadesHappy committed Dec 18, 2018
1 parent 40db56e commit de447f0
Show file tree
Hide file tree
Showing 12 changed files with 3 additions and 195 deletions.
1 change: 0 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -176,7 +176,6 @@ See [integrations](docs/Integrations.md) and [the blog post](https://medium.com/
## Docs
- [Options (arguments)](docs/API/Arguments.md)
- [Methods (advanced API)](docs/API/Methods.md)
- [Create Redux store for debugging](docs/API/CreateStore.md)
- [FAQ](docs/FAQ.md)
- Features
- [Trace actions calls](/docs/Features/Trace.md)
Expand Down
13 changes: 0 additions & 13 deletions docs/API/CreateStore.md

This file was deleted.

1 change: 0 additions & 1 deletion docs/API/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,3 @@

- [Parameters](Arguments.md)
- [Methods](Methods.md)
- [Create Redux store for debugging](CreateStore.md)
1 change: 0 additions & 1 deletion docs/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@
* [API Reference](/docs/API/README.md)
* [Options (arguments)](/docs/API/Arguments.md)
* [Methods (advanced API)](/docs/API/Methods.md)
* [Create Redux store for debugging](/docs/API/CreateStore.md)
* Features
* [Trace actions calls](/docs/Features/Trace.md)
* [Integrations](/docs/Integrations.md)
Expand Down
4 changes: 0 additions & 4 deletions examples/react-counter/.babelrc

This file was deleted.

62 changes: 0 additions & 62 deletions examples/react-counter/components/Counter.js

This file was deleted.

11 changes: 0 additions & 11 deletions examples/react-counter/index.html

This file was deleted.

8 changes: 0 additions & 8 deletions examples/react-counter/index.js

This file was deleted.

43 changes: 0 additions & 43 deletions examples/react-counter/package.json

This file was deleted.

23 changes: 0 additions & 23 deletions examples/react-counter/server.js

This file was deleted.

28 changes: 0 additions & 28 deletions examples/react-counter/webpack.config.js

This file was deleted.

3 changes: 3 additions & 0 deletions src/browser/extension/inject/pageScript.js
Original file line number Diff line number Diff line change
Expand Up @@ -306,6 +306,9 @@ const __REDUX_DEVTOOLS_EXTENSION__ = function(reducer, preloadedState, config) {
};

if (!reducer) return enhance();
/* eslint-disable no-console */
console.warn('Creating a Redux store directly from DevTools extension is discouraged and will not be supported in future major version. For more details see: https://git.io/fphCe');
/* eslint-enable no-console */
return createStore(reducer, preloadedState, enhance);
};

Expand Down

0 comments on commit de447f0

Please sign in to comment.