issues
search
ice-lab
/
ice-next
The repo was transferred to https://github.com/alibaba/ice
https://v3.ice.work/
MIT License
53
stars
7
forks
source link
如何在class组件中获取ssr数据?
#613
Closed
maskTAQ
closed
2 years ago
maskTAQ
commented
2 years ago
如何在class组件中获取ssr数据?在函数式组件是通过useData hooks获取
Any additional comments? 相关环境信息?
**ice.js Version 3+:
build.json Configuration
:
Node Version
:
Platform
:
ClarkXia
commented
2 years ago
推荐用 function 组件,如果一定要使用 Class 组件,可以通过 function 获取后再透传给 Class 组件
如何在class组件中获取ssr数据?在函数式组件是通过useData hooks获取
Any additional comments? 相关环境信息?