Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Reason for react-activation #1

Closed
CJY0208 opened this issue Sep 10, 2019 · 0 comments
Closed

Reason for react-activation #1

CJY0208 opened this issue Sep 10, 2019 · 0 comments

Comments

@CJY0208
Copy link
Owner

CJY0208 commented Sep 10, 2019

Implementation of <KeepAlive /> for React

Same as react-keep-alive

But fixed some of the issues in StructureBuilder/react-keep-alive#36

Principle

Pass the children attribute of <KeepAlive /> to <AliveScope /> and render it with <Keeper />

After <Keeper /> rendered, the content is transferred to <KeepAlive /> through DOM operation.

Since <Keeper /> will not be uninstalled, caching can be implemented.


Related Resource

@CJY0208 CJY0208 pinned this issue Sep 10, 2019
@CJY0208 CJY0208 closed this as completed Jun 30, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant