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

Rendering a component after a hydration mismatch throws an error #12253

Open
angelov-a opened this issue Oct 24, 2024 · 0 comments · May be fixed by #12255
Open

Rendering a component after a hydration mismatch throws an error #12253

angelov-a opened this issue Oct 24, 2024 · 0 comments · May be fixed by #12255
Labels
🔨 p3-minor-bug Priority 3: this fixes a bug, but is an edge case that only affects very specific usage. scope: ssr

Comments

@angelov-a
Copy link

angelov-a commented Oct 24, 2024

Vue version

3.5.12

Link to minimal reproduction

https://play.vuejs.org/#__PROD____SSR__eNp9Uk1PwzAM/SsmF4a0teLrAt3EhzjAARBwjIRCl5ZAmlSJWyZN++846Vom2DjV8Xu2n1+9ZJd1nbSNZGcs87lTNYKX2NQzblRVW4ewBGuepWule3SykJi/j4ECWEHhbAX7VLx/zs3Av7ZV/eIauYaTtE+EMR0zt8YjFFqUMA29RkjwATe/B41GBzCdRWLSCk09p1AI7QM3Szu5JJQeKKtaC5RAT4BsrlqYCxQTobX9mlTKV4L6RZDgtwbRGrjItco/p5ytleyFL2cztGWpZZZ2tDgglg2btRNVrMs4g7SbmdJQirK010IPNmboadtClcmHt4ZcXgYyZzn1Ulq6hxoVucHZGUQkYFH0XcwFY8Z9Pn+X+eeW/IdfhBxn5JsPBnI2YChcKbGDb57v5YLiAazsvNHE/gd8kt7qJmjsaFeNmZPsDV5Uexv/vTLli79ZoDS+XyoIDcxV5HNGNxBs3LX6j9zj5CTWcbMiFzdv6M+pbj+F4RIo6FXs+kmvdHRBMrU+Tk6TwyO2+gZYsAo1

Steps to reproduce

  1. Open the playground reproduction
  2. Click Toggle
  3. Observe the error in the console

What is expected?

No errors should appear.

What is actually happening?

TypeError: t is null

System Info

System:
    OS: macOS 15.0.1
    CPU: (10) arm64 Apple M1 Pro
    Memory: 1.04 GB / 32.00 GB
    Shell: 5.9 - /bin/zsh
  Binaries:
    Node: 22.9.0 - /usr/local/bin/node
    Yarn: 1.22.19 - /usr/local/bin/yarn
    npm: 10.8.3 - /usr/local/bin/npm
    bun: 1.1.29 - ~/.bun/bin/bun
  Browsers:
    Chrome: 116.0.5845.179
    Edge: 121.0.2277.98
    Safari: 18.0.1
  npmPackages:
    vue: 3.5.12 => 3.5.12

Any additional comments?

Does not throw an error if conditioned with an if-else clause. See the second reproduction:
https://play.vuejs.org/#__PROD____SSR__eNqdU01v2zAM/SusLk2B2MbW7dI5wT7QAdthG9YeBRSqLbtqZcmQZDdAkP9eUo5dp1+HnmzxPVKPj9SWfWvbtO8kO2O5L5xqA3gZunbNjWpa6wJswZoL6Xrp/jlZyVDcwA4qZxs4xrzjLzMi4ksobNN2QZYHrIn0A9GfQnu5B9NsipCMWTmKX7rukEiBkcdNYY0PUGlRw4ouXwSET7h5KnixOIHVOhLTXmisuYKKrkRung1tY8N4CLJptQgS8AiQl6qHUgSRCK3tfdIo3wisF0GEr7sQrIGvhVbF3YqzvZIj+nK2DrautcyzgTYmPTrQJ6rCrD0dsjkjdt4nkngTcJQkB2hMn7IhSQbVGcrGvzwbu8EDW7Lg0a9K1emttwbnvSUyZzQvpaX72waFfnJ2BhEhLLb9O8bI2uUYL25kcfdC/NZvKMYZOu9pBJxNWBCulmGAzy/+yA3+T2Bjy04j+w3wv/RWd6RxoH3vTImyZ7yo9lfcHmXqS3++CdL4sSkSSsxd5HOGW0RWvtb6o9zT9FPM42aHLh6s67NX8/I2Tcu0H2TcvbdGNV/1d9wxtvpa+St8G+QLlj5NP6cfPrLdA3/VWQs=

@edison1105 edison1105 added scope: ssr 🔨 p3-minor-bug Priority 3: this fixes a bug, but is an edge case that only affects very specific usage. labels Oct 25, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🔨 p3-minor-bug Priority 3: this fixes a bug, but is an edge case that only affects very specific usage. scope: ssr
Projects
None yet
2 participants