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

SSR and CSR Hydration #146

Closed
wants to merge 3 commits into from
Closed

SSR and CSR Hydration #146

wants to merge 3 commits into from

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 tt-a1i closed this Oct 31, 2024
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.

1 participant