Skip to content

rawProp start#33

Draft
LeaVerou wants to merge 2 commits intomainfrom
rawprop
Draft

rawProp start#33
LeaVerou wants to merge 2 commits intomainfrom
rawprop

Conversation

@LeaVerou
Copy link
Contributor

No description provided.

Copy link
Member

@DmitrySharabin DmitrySharabin left a comment

Choose a reason for hiding this comment

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

I have a couple of questions. 😃

...(spec.additionalDependencies ?? []),
]);

if (this.rawProp) {
Copy link
Member

Choose a reason for hiding this comment

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

I believe here should be spec.rawProp?

]);

if (this.rawProp) {
this.dependencies.add(this.rawProp);
Copy link
Member

Choose a reason for hiding this comment

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

And here?

delete element.props[prop.rawProp];
let rawProp = this.get(prop.rawProp);
rawProp.defaultProp ??= prop;
this.propChanged(element, rawProp, {source: "property", value: element.props[prop.rawProp]});
Copy link
Member

Choose a reason for hiding this comment

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

By this time, element.props[prop.rawProp] is already deleted, no? What value will be equal to?

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