You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm looking at PolymerApollo right now, trying to convert your behavior to 2.0 syntax. Some things to discuss are:
Where to put beforeRegister stuff? This has been removed with 2.x, I think this might belong into the constructor now (2.0 is class based like standard webcomponents)
I'm trying to get this to work in Polymer 2 too, but no luck so far;
using the wrapping syntax (class MyElement extends PolymerApolloBehavior(Polymer.Element) {}) gives the error Uncaught TypeError: PolymerApolloBehavior is not a function
Using Polymer.mixinBehaviors([PolymerApolloBehavior, Polymer.Element]) gives the error Uncaught TypeError: Cannot read property '__mixinSet' of undefined.
I'm looking at PolymerApollo right now, trying to convert your behavior to 2.0 syntax. Some things to discuss are:
I was thinking doing it like so:
And then in the component do this maybe?
Please let me know what you think, I'm just learning classes now, so I'm not sure if that makes sense.
Almost got something working, just gotta fix some dependencies in a demo, then I'll push a sample repo with what I have so far.
The text was updated successfully, but these errors were encountered: