-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
feat: log a warning instead of throwing an error for server host mismatch error #7236
base: build/v2
Are you sure you want to change the base?
Conversation
🦋 Changeset detectedLatest commit: 8a2a90e The changes in this PR will be included in the next version bump. This PR includes changesets to release 5 packages
Not sure what this means? Click here to learn what changesets are. Click here if you're a maintainer who wants to add another changeset to this PR |
8387e03
to
8a2a90e
Compare
commit: |
built with Refined Cloudflare Pages Action⚡ Cloudflare Pages Deployment
|
@@ -50,7 +50,6 @@ export const codeToText = (code: number, ...parts: any[]): string => { | |||
"Element must have 'q:container' attribute.", // 42 | |||
'Unknown vnode type {{0}}.', // 43 | |||
'Materialize error: missing element: {{0}} {{1}} {{2}}', // 44 | |||
'SsrError: {{0}}', // 45 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You can't just delete a line here, each error must be on a single line so that error links work.
If you renumber all errors it's ok but once it's stable you shouldn't renumber any more. What you can do is use old numbers for new errors I suppose.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
yeah I know, it is alpha thats why I removed the error
logWarn(errorMessage); | ||
return null; | ||
return 1; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this makes sorting unstable. If you don't see a difference, return 0
.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
actually shouldn't we still sort by host depth?
and the warning should happen when ssrnodes that already streamed are marked dirty, not when tasks rerun, no?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
for some reason returning 0 is not working, I will look at it
Log a warning instead of throwing an error for server host mismatch error