Subscribe on changes!

`useAttrs` does not return shorthand listeners in SSR

avatar
Apr 4th 2022

Version

3.2.31

Reproduction link

stackblitz.com

Steps to reproduce

Refresh the page when opening the reproduction.

What is expected?

I expect equal behaviour between client/server.

What is actually happening?

  • ['some-attr'] will be printed on server and ['some-attr', 'onClick'] on client

If you uncomment the alternative syntax in the sandbox (v-bind="{ onClick: handler }") then ['some-attr', 'onClick'] is printed on both client & server