Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

redux-zero

Package Overview
Dependencies
Maintainers
2
Versions
62
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

redux-zero - npm Package Compare versions

Comparing version 4.8.1 to 4.9.0

devtools/devtoolsMiddleware.d.ts

3

CHANGELOG.md
# Changelog
### 4.9.0
- Add DevTools middleware
### 4.8.1

@@ -4,0 +7,0 @@

3

package.json
{
"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)

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc