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

貌似不支持 react server component #165

Open
Bubbleinpit opened this issue Apr 20, 2024 · 2 comments
Open

貌似不支持 react server component #165

Bubbleinpit opened this issue Apr 20, 2024 · 2 comments

Comments

@Bubbleinpit
Copy link

在 nextjs 13 中使用,将 <Inspector /> 作为 client component 引入根组件 layout.tsx。发现所有 client component 都可以正常识别并跳转,而 server component 将会被识别成最近父节点的 client component。

@zthxxx
Copy link
Owner

zthxxx commented Apr 21, 2024

@Bubbleinpit 部分代码放到 https://stackblitz.com 上来给个复现环境?

@Bubbleinpit
Copy link
Author

@zthxxx 在 stackblitz 上新建了一个 nextjs 项目引入,可以复现:https://stackblitz.com/edit/stackblitz-starters-ytcgzk?file=app%2Fpage.tsx

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

2 participants