feat: support performance tracks for server components#1984
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
|
This pull request is automatically built and testable in CodeSandbox. To see build info of the built libraries, click here or the icon next to each commit SHA. |
commit: |
|
I was curious about this feature, but couldn't figure out (also haven't research that much). Is there something |
|
@hi-ogawa Thanks. I'm currently working and struggling with it.
|
In addition to using HMR ws, I implemented part of the feature as a vite plugin, so probably it can be extracted for other framework. And, it will be able to hide the |
| unstable_callServerRsc(funcId, args, () => fetchRscStore), | ||
| ...(import.meta.hot && { | ||
| debugChannel: debug?.debugChannel, | ||
| findSourceMapURL, |
There was a problem hiding this comment.
I thought @vitejs/plugin-rsc/browser bakes-in findSourceMapURL always. Is this customizing something beyond what @vitejs/plugin-rsc provides?
There was a problem hiding this comment.
Oh, I didn't realize that. So, we can simply delete it here, right?
When I did #1984, I wasn't happy with `renderRscForParse` workaround. serialize/deserialize should be cleaner apis.
Summary
Support performance tracks for server components and server requests.
See: https://react.dev/reference/dev-tools/react-performance-tracks
Notes
_debugInfo