Skip to content
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

Provide live binding for properties and children with function-based widgets #564

Merged
merged 6 commits into from
Nov 4, 2019

Conversation

agubler
Copy link
Member

@agubler agubler commented Oct 22, 2019

Type: bug

The following has been addressed in the PR:

Description:

The properties() function should provide a binding to the latest live property values, so when properties() is called in a callback it should provide the latest property value.

Resolves #563

src/core/vdom.ts Outdated
if (widgetMeta) {
return widgetMeta.children;
}
return {};
Copy link
Contributor

Choose a reason for hiding this comment

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

Should this be []?

Copy link
Member Author

Choose a reason for hiding this comment

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

Yes. Ooops.

@agubler agubler merged commit e79ebba into dojo:master Nov 4, 2019
agubler added a commit to agubler/framework that referenced this pull request Nov 5, 2019
…widgets (dojo#564)

* support tsx in vdom tests

* failing unit test for live property binding

* fix up failing unit tests

* support live binding to children and properties

* abstract widget args to function

* use factory for middleware
agubler added a commit that referenced this pull request Nov 5, 2019
…widgets (#564) (#578)

* Provide live binding for properties and children with function-based widgets (#564)

* support tsx in vdom tests

* failing unit test for live property binding

* fix up failing unit tests

* support live binding to children and properties

* abstract widget args to function

* use factory for middleware

* default to empty array
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.

Binding issue with properties and functional widgets
3 participants