Skip to content

docs: show customRef read and write types - #3497

Open
smg99 wants to merge 1 commit into
vuejs:mainfrom
smg99:docs/custom-ref-read-write-types
Open

smg99 wants to merge 1 commit into
vuejs:mainfrom
smg99:docs/custom-ref-read-write-types

Conversation

@smg99

@smg99 smg99 commented Nov 17, 2026

Copy link
Copy Markdown

The customRef() type block uses the same type for reading and writing. The released API also lets a setter accept a different type, so this updates the signatures for both customRef and CustomRefFactory and explains the default.

The public track and trigger callbacks still return void in the factory signature. See the discussion in #3400 and the released declaration.

Verified the signatures against Vue 3.5.44. Prettier and git diff --check passed.

@netlify

netlify Bot commented Nov 17, 2026

Copy link
Copy Markdown

👷 Deploy request for vuejs pending review.

Visit the deploys page to approve it

Name Link
🔨 Latest commit f83dedf

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant