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

Fix #4818 #4839

Closed
wants to merge 1 commit into from
Closed

Fix #4818 #4839

wants to merge 1 commit into from

Conversation

sorvell
Copy link
Contributor

@sorvell sorvell commented Sep 13, 2017

WIP: needs tests and heavy review.

Adds boolean argument to _flushProperties which "forces" any changes to objects to propagate. This is then used by dom-if to ensure when if becomes true, data propagates as expected.

Fixes #4818

Adds boolean argument to `_flushProperties` which "forces" any changes to objects to propagate. This is then used by `dom-if` to ensure when `if` becomes true, data propagates as expected.
@MajorBreakfast
Copy link
Contributor

@sorvell @TimvdLippe
#5094 has some nice tests for this. Shall I provide a PR to this branch?
Am I allowed to use async functions in tests? (Makes them easier to read)

@sorvell
Copy link
Contributor Author

sorvell commented Feb 21, 2018

After consideration, we've determined that there's too much risk of breaking user code if we change the core functionality around how data is passed between elements. Therefore we're not going to merge this PR.

Instead, we recommend using immutable data patterns to have more control over how data propagates between elements. We plan to provide some helpers around working with immutable data, see: #5126.

@sorvell sorvell closed this Feb 21, 2018
@sorvell sorvell deleted the fix-4818 branch February 21, 2018 23:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants