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

SSR:暴露缓存对象 #143

Closed
Diablohu opened this issue Jul 12, 2019 · 1 comment
Closed

SSR:暴露缓存对象 #143

Diablohu opened this issue Jul 12, 2019 · 1 comment
Labels
enhancement New feature or request

Comments

@Diablohu
Copy link
Member

允许项目代码使用

客户端:也可使用,不过仅作为空对象

@Diablohu
Copy link
Member Author

const cache = (() => {
    if (__CLIENT__) return {};
    return __DEV__ ? global.__KOOT_SSR__.__cache : __KOOT_SSR__.__cache;
})();

Diablohu added a commit that referenced this issue Jul 15, 2019
@Diablohu Diablohu added enhancement New feature or request and removed feature request labels Sep 17, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant