├── .github └── workflows │ └── publish.yml ├── .gitignore ├── .npmignore ├── .prettierrc ├── LICENSE ├── README.md ├── README_CN.md ├── babel.config.js ├── babel.js ├── docs ├── basicReactActivation.gif └── reactActivationPrinciple.gif ├── index.d.ts ├── index.js ├── package.json ├── rollup.config.js └── src ├── core ├── AliveScope.js ├── Bridge │ ├── Context │ │ ├── ConsumerBridge.js │ │ ├── ConsumerWrapper.js │ │ ├── ProviderBridge.js │ │ ├── fixContext.js │ │ └── index.js │ ├── ErrorBoundary.js │ ├── Suspense.js │ └── index.js ├── Freeze.js ├── KeepAlive.js ├── Keeper.js ├── NodeKey.js ├── context │ ├── FakeScopeContext.js │ ├── index.js │ └── reactContext.js ├── lifecycles.js └── withAliveScope.js ├── helpers ├── createReactContext.js ├── is │ └── index.js └── saveScrollPosition.js └── index.js /.github/workflows/publish.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CJY0208/react-activation/HEAD/.github/workflows/publish.yml -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | node_modules 2 | lib 3 | 4 | # editor 5 | .idea 6 | .vscode -------------------------------------------------------------------------------- /.npmignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CJY0208/react-activation/HEAD/.npmignore -------------------------------------------------------------------------------- /.prettierrc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CJY0208/react-activation/HEAD/.prettierrc -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CJY0208/react-activation/HEAD/LICENSE -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CJY0208/react-activation/HEAD/README.md -------------------------------------------------------------------------------- /README_CN.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CJY0208/react-activation/HEAD/README_CN.md -------------------------------------------------------------------------------- /babel.config.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CJY0208/react-activation/HEAD/babel.config.js -------------------------------------------------------------------------------- /babel.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CJY0208/react-activation/HEAD/babel.js -------------------------------------------------------------------------------- /docs/basicReactActivation.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CJY0208/react-activation/HEAD/docs/basicReactActivation.gif -------------------------------------------------------------------------------- /docs/reactActivationPrinciple.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CJY0208/react-activation/HEAD/docs/reactActivationPrinciple.gif -------------------------------------------------------------------------------- /index.d.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CJY0208/react-activation/HEAD/index.d.ts -------------------------------------------------------------------------------- /index.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CJY0208/react-activation/HEAD/index.js -------------------------------------------------------------------------------- /package.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CJY0208/react-activation/HEAD/package.json -------------------------------------------------------------------------------- /rollup.config.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CJY0208/react-activation/HEAD/rollup.config.js -------------------------------------------------------------------------------- /src/core/AliveScope.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CJY0208/react-activation/HEAD/src/core/AliveScope.js -------------------------------------------------------------------------------- /src/core/Bridge/Context/ConsumerBridge.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CJY0208/react-activation/HEAD/src/core/Bridge/Context/ConsumerBridge.js -------------------------------------------------------------------------------- /src/core/Bridge/Context/ConsumerWrapper.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CJY0208/react-activation/HEAD/src/core/Bridge/Context/ConsumerWrapper.js -------------------------------------------------------------------------------- /src/core/Bridge/Context/ProviderBridge.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CJY0208/react-activation/HEAD/src/core/Bridge/Context/ProviderBridge.js -------------------------------------------------------------------------------- /src/core/Bridge/Context/fixContext.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CJY0208/react-activation/HEAD/src/core/Bridge/Context/fixContext.js -------------------------------------------------------------------------------- /src/core/Bridge/Context/index.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CJY0208/react-activation/HEAD/src/core/Bridge/Context/index.js -------------------------------------------------------------------------------- /src/core/Bridge/ErrorBoundary.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CJY0208/react-activation/HEAD/src/core/Bridge/ErrorBoundary.js -------------------------------------------------------------------------------- /src/core/Bridge/Suspense.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CJY0208/react-activation/HEAD/src/core/Bridge/Suspense.js -------------------------------------------------------------------------------- /src/core/Bridge/index.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CJY0208/react-activation/HEAD/src/core/Bridge/index.js -------------------------------------------------------------------------------- /src/core/Freeze.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CJY0208/react-activation/HEAD/src/core/Freeze.js -------------------------------------------------------------------------------- /src/core/KeepAlive.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CJY0208/react-activation/HEAD/src/core/KeepAlive.js -------------------------------------------------------------------------------- /src/core/Keeper.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CJY0208/react-activation/HEAD/src/core/Keeper.js -------------------------------------------------------------------------------- /src/core/NodeKey.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CJY0208/react-activation/HEAD/src/core/NodeKey.js -------------------------------------------------------------------------------- /src/core/context/FakeScopeContext.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CJY0208/react-activation/HEAD/src/core/context/FakeScopeContext.js -------------------------------------------------------------------------------- /src/core/context/index.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CJY0208/react-activation/HEAD/src/core/context/index.js -------------------------------------------------------------------------------- /src/core/context/reactContext.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CJY0208/react-activation/HEAD/src/core/context/reactContext.js -------------------------------------------------------------------------------- /src/core/lifecycles.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CJY0208/react-activation/HEAD/src/core/lifecycles.js -------------------------------------------------------------------------------- /src/core/withAliveScope.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CJY0208/react-activation/HEAD/src/core/withAliveScope.js -------------------------------------------------------------------------------- /src/helpers/createReactContext.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CJY0208/react-activation/HEAD/src/helpers/createReactContext.js -------------------------------------------------------------------------------- /src/helpers/is/index.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CJY0208/react-activation/HEAD/src/helpers/is/index.js -------------------------------------------------------------------------------- /src/helpers/saveScrollPosition.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CJY0208/react-activation/HEAD/src/helpers/saveScrollPosition.js -------------------------------------------------------------------------------- /src/index.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CJY0208/react-activation/HEAD/src/index.js --------------------------------------------------------------------------------