-
-
Notifications
You must be signed in to change notification settings - Fork 51.4k
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
docs: prevent highlight code initially #44344
Conversation
|
const highlightedCodes = { | ||
jsx: Prism.highlight(jsx, Prism.languages.javascript, 'jsx'), | ||
tsx: Prism.highlight(entryCode, Prism.languages.javascript, 'jsx'), | ||
}; |
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.
原来的写法是直接放 render 里。。。
size-limit report 📦
|
The latest updates on your projects. Learn more about Argos notifications ↗︎
|
> | ||
<Previewer {...props} /> | ||
</Suspense> | ||
<ErrorBoundary> |
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.
这个是啥场景要加个 ErrorBoundary
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.
CodePreview 代码本身写错了一行代码直接白了,顺手加个。
Codecov ReportPatch and project coverage have no change.
Additional details and impacted files@@ Coverage Diff @@
## master #44344 +/- ##
=========================================
Coverage 100.00% 100.00%
=========================================
Files 660 660
Lines 11230 11230
Branches 3039 3039
=========================================
Hits 11230 11230 ☔ View full report in Codecov by Sentry. |
[中文版模板 / Chinese template]
🤔 This is a ...
🔗 Related issue link
💡 Background and solution
缺点是 Table 页面点击展开全部代码,会有一点点卡。
性能对比效果
📝 Changelog
☑️ Self-Check before Merge
🚀 Summary
🤖 Generated by Copilot at 32cebc9
No summary available (Limit exceeded: required to process 52276 tokens, but only 50000 are allowed per call)
🔍 Walkthrough
🤖 Generated by Copilot at 32cebc9
No walkthrough available (Limit exceeded: required to process 52276 tokens, but only 50000 are allowed per call)