Skip to content

customRef type doesn't allow for different setter type #14637

Closed

Description

@f3oall

Vue version

3.5.31

Link to minimal reproduction

https://play.vuejs.org/#eNp9UsFuwjAM/RUrF0BCrSa2CwKkbeKwHdjEdow0dcV0hTSJEqdjYvz73JQChwlVauLnZ+f5JXtxb21SBxRjMfG5Ky2BRwoWVKaLqRTkpZhJXVbWOII95MGTqZa4hgOsnamgx8U9qZsvN9oT5DA9s/p9clm+HQK5sijQDWA6g73UAAoJ6kwFZPpNAzg+1uk2CVAg9QddcErGghY7DNuV1fYjPAYdqk908AueT9PFRXl30CIyWv7g2KdZ+HfgOE86Yq8Hadr0Jm5IPxah9KANT5dZVoIrqSdp6xe7wwFhZVVGyBHAZFXWKe8m6QUshmwmW7Qui2TjjWbHoz4pclPZUqF7sVSyhVKMO+VSZEqZ7+eIkQt4HJprvjDf/oNv/K7BpHh16NHVKMUpR5ljW9v0/G2BO96fkpVZBcXsK8kleqNCo7GlPQS9YtkXvKj2Kb4VvoB3P98Rat8N1QiNbke+FPxyHq+MfpY7Sm67W2IXP2p0TU82cJTcJaMbcfgDNNjoew==

Steps to reproduce

Try to create customRef with explicit, different setter type.

What is expected?

customRef allows for different getter/setter respecting Ref type

What is actually happening?

Setter type is not captured

System Info

N/A

Any additional comments?

Given that Ref itself already has proper generic parameters, fix should be easy. Let me know if PR would be welcome.

Found only this old discussion regarding this issue: vuejs/rfcs#558

Activity

  1. added a commit that references this issue on Mar 26, 2026
    ead3206
  2. locked and limited conversation to collaborators on Apr 18, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions