Closed stramel closed 7 years ago
Just checking if you guys have a chance to take a look at this...
I am currently using this mixin in my Polymer 2.0 app and haven't noticed anything strange with it.
I don't know how I feel about having a 2.0-only / ES6 mixin in a "hybrid repository". @notwaldorf I feel like this is more your territory
Thanks for the PR! Unfortunately, we don't really have a plan to convert the hybrid elements to pure 2.0 at this time, since we don't have a lot of bandwidth for that. Further, this wouldn't add too much value, since it's not actually fixing anything that's broken, and just adds another breaking change release that needs to be maintained separately :(
@notwaldorf How would this be a breaking change? I maintained backwards compability and added a new feature (mixin). The benefit is that I don't have to pull in the full legacy polymer to use this in a pure 2.0 application.
I see several problems with this approach:
app-localize-mixin.html
, which is completely unusable in my app. I don't know how I feel about that, especially that in the future, you might try to add 2.0-only code to it, thus making this 2.0 release of this element behave _very- differently in Polymer 1 and Polymer 2 apps (and defeating the point of hybrid elements)language
are live both in app-localize-behavior.html
and app-localize-mixin.html
, and i can guarantee you future PRs will only touch one of these files, and the reviewer has to remember that it's in two.Okay, I understand some of these pain points you are talking about. I have handled all of these in lazy-imports
. I'm okay with holding off on this for now until you guys decide to make the cut over. I will keep my branch open for anyone who wants to use it.
A bit of a hacky consolidation but is a similar approach to how I handled it in lazy-imports.
Base and Behavior are still ES5 Mixin is ES6
Things to do if we decide to move forward:
@notwaldorf @e111077