generated from idea2app/Next-Bootstrap-ts
-
Notifications
You must be signed in to change notification settings - Fork 6
[add] Class version of License Filter #25
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
Merged
TechQuery
merged 13 commits into
Open-Source-Bazaar:main
from
luojiyin1987:feat/license-filter
Jul 16, 2025
Merged
[add] Class version of License Filter #25
TechQuery
merged 13 commits into
Open-Source-Bazaar:main
from
luojiyin1987:feat/license-filter
Jul 16, 2025
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Contributor
Contributor
Author
|
我复用了 ../components/Layout/PageHead 这个 PageHead 组件 |
Contributor
Author
on-recoverable-error.js:29 Uncaught Error: Hydration failed because the server rendered HTML didn't match the client. As a result this tree will be regenerated on the client. This can happen if a SSR-ed Client Component used:
- A server/client branch `if (typeof window !== 'undefined')`.
- Variable input such as `Date.now()` or `Math.random()` which changes each time it's called.
- Date formatting in a user's locale which doesn't match the server.
- External changing data without sending a snapshot of it along with the HTML.
- Invalid HTML tag nesting.
It can also happen if the client has a browser extension installed which messes with the HTML before React loaded.
https://react.dev/link/hydration-mismatch
...
<PathnameContextProviderAdapter router={{sdc:{},sbc:{}, ...}} isAutoExport={false}>
<CustomApp pageProps={{}} language="zh-CN" languageMap={{...}} Component={{...}} err={undefined} ...>
<Head>
<Navbar>
<div className="mt-5 pt-2">
<Container className="py-5">
<div ref={null} className="py-5 conta...">
<PageHead>
<h1>
<p>
<p>
<h2>
<p>
<p>
<ProgressBar className="mb-3" variant="info" now={10} label={undefined}>
<div ref={null} className="mb-3 progress">
<div ref={null} role="progressbar" className="progress-b..." style={{width:"10%"}} aria-valuenow={10} ...>
- 第 1 步
...
...
...
at eval (license-filter.tsx:108:7)
at CustomApp.render (_app.tsx:67:13)
直接搬过来的代码有 水合报错(Hydration )。 @TechQuery |
TechQuery
requested changes
Jul 16, 2025
Member
@luojiyin1987 已确认是“翻译函数无法被 Next.js Page router 序列化传输”所致,建议先用“步数文字改百分号”的方法绕过。 |
… simplify License Filter source code
TechQuery
approved these changes
Jul 16, 2025
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.

Checklist(清单):
Closes #XXXXX