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

Static content optimization causes different hydration mismatch behavior for class/style order #4656

Open
nolanlawson opened this issue Oct 17, 2024 · 0 comments
Labels
bug hydration Having to do with hydration after SSR

Comments

@nolanlawson
Copy link
Collaborator

If you have a template like this:

<template>
  <div class={classes} style={style}></div>
</template>

And if the content is the same on the server and another on the client, except that the ordering is different:

// server
classes = 'a b'
style='color: red; background: blue;'
// client
classes = 'b a'
style='background: blue; color: red'

...then you get a hydration mismatch in the non-static-optimized case, but no mismatch in the static-optimized case.

This is kind of an edge-case-of-an-edge-case, but opening the issue to track this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug hydration Having to do with hydration after SSR
Projects
None yet
Development

No branches or pull requests

1 participant