Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Factory functions for default values are optional #3282

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

Open
max-nextcloud wants to merge 1 commit into vuejs:main
base: main
Choose a base branch
Loading
from max-nextcloud:patch-1

Conversation

Copy link

@max-nextcloud max-nextcloud commented Aug 22, 2025

There's no more error and types also allow for directly passing objects as the default value.

Description of Problem

In Vue2 passing objects as a default would cause an error message in the logs. This message is gone now and the type system also seems to allow passing objects directly.
At the same time the docs still claim that a factory function must be used.

Proposed Solution

Update documentation to match the current state.

Additional Information

I have no knowledge about the implication of using a factory function or not. Would just be nice if docs and type hints / warnings matched.

There's no more error and types also allow for directly passing objects as the default value.
Copy link

netlify bot commented Aug 22, 2025
edited
Loading

Deploy Preview for vuejs ready!

Name Link
🔨 Latest commit 5fa5912
🔍 Latest deploy log https://app.netlify.com/projects/vuejs/deploys/68a825a66b9ca00008f48b99
😎 Deploy Preview https://deploy-preview-3282--vuejs.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Reviewers
No reviews
Assignees
No one assigned
Labels
None yet
Projects
None yet
Milestone
No milestone
Development

Successfully merging this pull request may close these issues.

1 participant

AltStyle によって変換されたページ (->オリジナル) /