Skip to content

useAttrs does not return shorthand listeners in SSR #5664

@danielroe

Description

@danielroe

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions