• Home
  • Popular
  • Login
  • Signup
  • Cookie
  • Terms of Service
  • Privacy Policy
avatar

Posted by Mark DS


09 Jan, 2025

Updated at 20 Jan, 2025

For asynchronous setup exceptions, renderoString cannot capture them

My project is SSR, and we have found that it was swallowed due to an exception. The corresponding source code address is

https://github.com/vuejs/core/blob/main/packages/server-renderer/src/render.ts#L107-L118

image

May I ask why NOOP is used here instead of throwing an exception directly?

https://codesandbox.io/p/devbox/heuristic-jennings-z8y2kg
Here is a demo rendered by the client, and all the issues are present. You can quickly reproduce it

thank🙏