react-keep-alive
Advanced tools
{ | ||
"name": "react-keep-alive", | ||
"version": "2.1.0", | ||
"version": "2.2.0", | ||
"description": "Package will allow components to maintain their status, to avoid repeated re-rendering.", | ||
@@ -22,2 +22,3 @@ "author": "Shen Chang", | ||
"module": "es/index.js", | ||
"types": "index.d.ts", | ||
"scripts": { | ||
@@ -32,5 +33,5 @@ "clean:es": "rimraf es", | ||
"build:dist": "npm run build:es && npm run build:cjs", | ||
"publish:patch": "npm run build:dist && npm version patch && npm publish", | ||
"publish:minor": "npm run build:dist && npm version minor && npm publish", | ||
"publish:major": "npm run build:dist && npm version major && npm publish", | ||
"publish:patch": "npm version patch && npm publish", | ||
"publish:minor": "npm version minor && npm publish", | ||
"publish:major": "npm version major && npm publish", | ||
"start:demo": "webpack-dev-server --hot --historyApiFallback", | ||
@@ -37,0 +38,0 @@ "start:es": "npm run clean:es && tsc -w -sourcemap --outDir es" |
@@ -149,2 +149,4 @@ <p align="center"> | ||
`extra`(`v2.0.1+`): Additional data can be obtained through `bindLifecycle`. | ||
**Note**: `<KeepAlive>` The innermost outer layer of the packaged component must have a real DOM tag. | ||
@@ -151,0 +153,0 @@ |
@@ -151,2 +151,4 @@ <p align="center"> | ||
`extra`(`v2.0.1+`): 额外的数据可以通过 `bindLifecycle` 获取。 | ||
**注意**:`<KeepAlive>` 包裹的组件内部最外层必须有一个真实的 DOM 标签。 | ||
@@ -153,0 +155,0 @@ |
318
0.63%259858
-5.97%62
-44.14%2480
-15.3%