Skip to content
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: SSR and CSR Hydration[an extra space at the end of the class name] #147

Merged
merged 6 commits into from
Nov 1, 2024

Conversation

tt-a1i
Copy link
Contributor

@tt-a1i tt-a1i commented Oct 31, 2024

PR Type

What kind of change does this PR introduce?

  • Bugfix
  • Feature
  • Code style update (formatting, local variables)
  • Refactoring (no functional changes, no api changes)
  • Build related changes
  • CI related changes
  • Documentation update
  • Performance improvement
  • Test related changes
  • Security fix
  • Dependency update
  • Revert changes
  • Other... Please describe:

What is the current behavior?

报错信息:Warning: Prop className did not match. Server: "absolute top-0 right-0 w-1 h-full bg-[image:linear-gradient(to_bottom,#0c002b,#1779ff)] animate-snakeBorderLeft" Client: "absolute top-0 right-0 w-1 h-full bg-[image:linear-gradient(to_bottom,#0c002b,#1779ff)] animate-snakeBorderLeft " Error Component Stack
服务器端渲染:生成的 className 是 "absolute top-0 right-0 w-1 h-full bg-[image:linear-gradient(to_bottom,#0c002b,#1779ff)] animate-snakeBorderLeft"。

客户端渲染:生成的 className 是 "absolute top-0 right-0 w-1 h-full bg-[image:linear-gradient(to_bottom,#0c002b,#1779ff)] animate-snakeBorderLeft ",
末尾多了一个空格。

  • Closes #
  • Related to #

What is the new behavior?

before fixed
image

after fixed
image

Does this PR introduce a breaking change?

  • Yes
  • No

UI Changes

Other information

tt-a1i and others added 6 commits October 31, 2024 13:11
… right-0 w-1 h-full bg-[image:linear-gradient(to_bottom,#0c002b,#1779ff)] animate-snakeBorderLeft" Client: "absolute top-0 right-0 w-1 h-full bg-[image:linear-gradient(to_bottom,#0c002b,#1779ff)] animate-snakeBorderLeft " Error Component Stack

服务器端渲染:生成的 className 是 "absolute top-0 right-0 w-1 h-full bg-[image:linear-gradient(to_bottom,#0c002b,#1779ff)] animate-snakeBorderLeft"。

客户端渲染:生成的 className 是 "absolute top-0 right-0 w-1 h-full bg-[image:linear-gradient(to_bottom,#0c002b,#1779ff)] animate-snakeBorderLeft ",
末尾多了一个空格。
Copy link

vercel bot commented Oct 31, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
online-edit-web ✅ Ready (Inspect) Visit Preview 💬 Add feedback Oct 31, 2024 4:04pm

Copy link
Owner

@xun082 xun082 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

image 麻烦你先看一下提交文档,按照截图的标题风格来

@tt-a1i
Copy link
Contributor Author

tt-a1i commented Nov 1, 2024

image 麻烦你先看一下提交文档,按照截图的标题风格来

不好意思,是我这边没有按照规范来,还请多多指正

@tt-a1i tt-a1i changed the title SSR and CSR Hydration fix: SSR and CSR Hydration[an extra space at the end of the class name] Nov 1, 2024
@xun082 xun082 merged commit bdc98c1 into xun082:main Nov 1, 2024
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants