Skip to content

Conversation

WebDevEtc
Copy link
Contributor

@WebDevEtc WebDevEtc commented Sep 13, 2020

  • Adds support for mounting with propsData option,
    for backwards compatibility.

See #204

Added two tests to be clear what happens when both props and propsData are provided. Happy to change implementation to a different behaviour if that would be preferred.

(No warning/error is given to the user if both props and propsData are used in the mounting options.)

@WebDevEtc WebDevEtc marked this pull request as ready for review September 13, 2020 08:39
@WebDevEtc WebDevEtc force-pushed the issue-204-support-propsdata branch from 6071ca2 to dd39b86 Compare September 13, 2020 08:41
Copy link
Member

@lmiller1990 lmiller1990 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

One comment! Thanks for this.

? Partial<Data>
: never
props?: Props
propsData?: Props
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good, what do you think about marking this as deprecated?

https://devblogs.microsoft.com/typescript/announcing-typescript-4-0-beta/#deprecated-support

 - Adds support for mounting with `propsData` option,
   for backwards compatibility.
 - propsData is marked as deprecated.

See vuejs#204
@WebDevEtc WebDevEtc force-pushed the issue-204-support-propsdata branch from dd39b86 to 1f39d7c Compare September 14, 2020 07:50
@lmiller1990
Copy link
Member

Great, thanks @WebDevEtc

I will release in the next few days.

@lmiller1990 lmiller1990 merged commit d4ffade into vuejs:master Sep 14, 2020
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.

2 participants