redux-zero
Advanced tools
Comparing version 4.8.1 to 4.9.0
# Changelog | ||
### 4.9.0 | ||
- Add DevTools middleware | ||
### 4.8.1 | ||
@@ -4,0 +7,0 @@ |
{ | ||
"name": "redux-zero", | ||
"version": "4.8.1", | ||
"version": "4.9.0", | ||
"description": "", | ||
@@ -25,2 +25,3 @@ "main": "dist/redux-zero.js", | ||
"files": [ | ||
"devtools", | ||
"dist", | ||
@@ -27,0 +28,0 @@ "interfaces", |
@@ -162,2 +162,3 @@ <h1 align="center"> | ||
- [React Native](https://github.com/concretesolutions/redux-zero/tree/master/examples/react-native/counter) | ||
- [SSR](https://github.com/concretesolutions/redux-zero/tree/master/examples/react/ssr) | ||
- [Svelte](https://github.com/concretesolutions/redux-zero/tree/master/examples/svelte/counter) | ||
@@ -239,2 +240,19 @@ - [Vue](https://github.com/concretesolutions/redux-zero/tree/master/examples/vue/counter) | ||
### DevTools Middleware | ||
You can setup DevTools middleware in store.js to connect with Redux DevTools and inspect states in the store. | ||
```js | ||
/* store.js */ | ||
import createStore from 'redux-zero'; | ||
import { applyMiddleware } from 'redux-zero/middleware'; | ||
import { connect } from 'redux-zero/devtools'; | ||
const initialState = { count: 1 }; | ||
const middlewares = connect ? applyMiddleware(connect(initialState)): []; | ||
const store = createStore(initialState, middlewares); | ||
export default store; | ||
``` | ||
## Inspiration | ||
@@ -241,0 +259,0 @@ **Redux Zero** was based on this [gist](https://gist.github.com/developit/55c48d294abab13a146eac236bae3219) by [@developit](https://github.com/developit) |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
112573
84
917
272