-
Notifications
You must be signed in to change notification settings - Fork 2k
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
Expose bare minimum to add property effects dynamically. #3456
Comments
Can you describe what the use cases are for custom property effects with some examples? |
Well I linked to numerous issues in the PR: #3420, #1796, #2131, #2638, #1778 In a nutshell, this is just the straightforward code for what Polymer calls an
And since a function effect is pretty low-level, you could rebuild all the effect kinds with it. The problem with this PR is, adding elements gets damn easy, but removing them from the document requires that you also unregister all the custom effects, so you still have to keep track of that state. The problem Polymer has, is that it somewhat fails in highly polymorphic situations: If you can't tell which elements/tags you will need to insert upfront, or if you just don't know which properties for example to bind to etc. Polymer also often forces you to use dom-repeats's or dom-if's although they don't perform that well and are highly opinionated in what they do and how they work and don't work. |
I think this is a good use-case: #3547. |
This has been shipped in Polymer 2: https://www.polymer-project.org/2.0/docs/api/elements/Polymer.Element#method-addPropertyEffect Thanks for the suggestion! |
As implemented #3460.
Following API:
The text was updated successfully, but these errors were encountered: