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
fix(schema): show payloadExtraction
warning only when unset
#18516
Conversation
Β Open in CodeSandbox Web Editor | VS Code | VS Code Insiders |
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 is a nice change, thank you!
payloadExtraction
warning when it is unset
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.
Oops, my apologies; I forgot how we are doing this. In fact we set this here:
So we don't want to show warning always if it is null or undefined because it is only on prerendering that it is in fact enabled, and in that case it is because it is set to true
.
I pressed the wrong button. Sorry. |
I want to work on this, but I am not exactly sure how it works. Could you explain it a bit more? I am not sure what Or could you help me on this? |
payloadExtraction
warning when it is unsetpayloadExtraction
warning only when unset
π Linked issue
No linked issue.
β Type of change
π Description
This is only a minor change and I am not sure if it is a good one.
This change should be made because when users sets
experimental.payloadExtraction
totrue
on purpose, they are hinting that either they are doing this on purpose or wanting the warnings to be gone.This code change only changes the code so that if the
enabled
property isundefined
(meaning the user did not set any configuration), it shows the warnings, but if the user sets it totrue
there will be no warnings.π§ͺ Tests / Examples