🚀 Big News: Socket Acquires Coana to Bring Reachability Analysis to Every Appsec Team.Learn more
Socket
Sign inDemoInstall
Socket

react-keep-alive

Package Overview
Dependencies
Maintainers
1
Versions
28
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

react-keep-alive - npm Package Compare versions

Comparing version

to
2.4.2

6

cjs/utils/bindLifecycle.js

@@ -76,3 +76,7 @@ "use strict";

WrappedComponent.prototype.componentDidUpdate = function () {
componentDidUpdate.call(this);
var args = [];
for (var _i = 0; _i < arguments.length; _i++) {
args[_i] = arguments[_i];
}
componentDidUpdate.call.apply(componentDidUpdate, [this].concat(args));
if (this._needActivate) {

@@ -79,0 +83,0 @@ this._needActivate = false;

@@ -64,3 +64,7 @@ var __assign = (this && this.__assign) || function () {

WrappedComponent.prototype.componentDidUpdate = function () {
componentDidUpdate.call(this);
var args = [];
for (var _i = 0; _i < arguments.length; _i++) {
args[_i] = arguments[_i];
}
componentDidUpdate.call.apply(componentDidUpdate, [this].concat(args));
if (this._needActivate) {

@@ -67,0 +71,0 @@ this._needActivate = false;

2

package.json
{
"name": "react-keep-alive",
"version": "2.4.1",
"version": "2.4.2",
"description": "Package will allow components to maintain their status, to avoid repeated re-rendering.",

@@ -5,0 +5,0 @@ "author": "Shen Chang",