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

ember-redux

Package Overview
Dependencies
Maintainers
2
Versions
57
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

ember-redux - npm Package Compare versions

Comparing version 1.5.3 to 1.6.0

addon/-private/equal.js

28

addon/components/connect.js
import Ember from 'ember';
import shallowEqual from '../-private/equal';

@@ -41,10 +42,27 @@ const { computed, defineProperty } = Ember;

if (shouldSubscribe && !this.unsubscribe) {
this.unsubscribe = redux.subscribe(() => {
props.forEach(function(name) {
component.notifyPropertyChange(name);
});
});
this.unsubscribe = redux.subscribe(this.handleChange.bind(this));
}
this._super(...arguments);
},
handleChange() {
var redux = this.get('redux');
var props = mapState(redux.getState());
var componentState = this.getComponentState(props);
var reduxState = finalMapStateToComputed(redux.getState());
if (!shallowEqual(componentState, reduxState)) {
this.updateProps(props);
}
},
getComponentState(props) {
var componentState = {};
props.forEach((name) => {
componentState[name] = this.get(name);
});
return componentState;
},
updateProps(props) {
props.forEach((name) => {
this.notifyPropertyChange(name);
});
},
willDestroy() {

@@ -51,0 +69,0 @@ if (this.unsubscribe) {

ember-redux Changelog
==============================
1.6.0
-----
* [PERFORMANCE]: only notifyPropertyChange when a value is diff between redux and component
([#23](https://github.com/toranb/ember-redux/pull/23))
1.5.3

@@ -5,0 +12,0 @@ -----

2

package.json
{
"name": "ember-redux",
"version": "1.5.3",
"version": "1.6.0",
"description": "ember-cli addon that provides simple redux bindings for ember.js",

@@ -5,0 +5,0 @@ "directories": {

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