-
-
Notifications
You must be signed in to change notification settings - Fork 5.5k
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
Add static examples for [Node] #2409
Conversation
Generated by 🚫 dangerJS |
services/node/node.service.js
Outdated
}, | ||
] | ||
} | ||
|
||
static renderStaticExample({ tag, nodeVersionRange }) { | ||
// This should match the behavior of `async render()`, which is enforced | ||
// with a unit test. |
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.
It took me a while to work out that the reason why we have to do this non-standard thing is because render()
has to call an async function but we need this to be a synchronous call. Can we make this extra clear in the comment here.
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.
I updated the comment. See if that's clearer?
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.
cheers :)
Ref #1961