Open matthewlein opened 2 years ago
Following up on this, errors raised during component rendering are caught at the frontloadServerRender
catch block level, as you would expect, but errors that are raised in the async useFrontload
function appear to not be.
Can you clarify how server rendered errors are handled? I'm trying to raise an error in the frontload to be handled in the node server render block, but I can't seem to catch the error anywhere. It seems like its being swallowed somewhere, but I can't figure it out.
This sounds like exactly what I want, but from what I can see, frontloadMetadata.error is populated, and the error is being caught.
frontload definitely sees the error
The component appears to keep rendering though, I see
frontloadMeta.error true
logged in the server console from the component:Nothing is logged at the catch block of the server rendering block
What would you expect to happen with errors in this setup?
Do you happen to have a simple demo site that can be used verify how errors work? I may make one, but if you have one already it would be helpful to rule out app code.