Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
R
react-keep-alive
Project overview
Project overview
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Administrator
react-keep-alive
Commits
d3463135
Unverified
Commit
d3463135
authored
Mar 29, 2019
by
Shen Chang
Committed by
GitHub
Mar 29, 2019
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Update README.zh-CN.md
parent
cedfb145
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
README.zh-CN.md
README.zh-CN.md
+1
-1
No files found.
README.zh-CN.md
View file @
d3463135
...
...
@@ -144,7 +144,7 @@ npm install react-router@next react-router-dom@next
我们必须确保
`<KeepAlive>`
在
`<Provider>`
里面,这样
`<KeepAlive>`
的子组件才能被缓存。
#### Props
`
key`
:
`key`
必须存在并且需要确保当前
`<Provider>`
下的所有
`<KeepAlive>`
的
`key`
都是唯一的
。
`
name`
:
`name`
必须存在并且需要确保当前
`<Provider>`
下的所有
`<KeepAlive>`
的
`name`
都是唯一的(1.2.0 新增,替换
`key`
)
。
`disabled`
:当我们不需要缓存组件时,我们可以禁用它;禁用仅在组件从未激活状态变为激活状态时生效。
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment