Closed phillipskevin closed 5 years ago
The first step to making this work is to change isBuiltIn
:
...so that it returns false for custom elements. This is because built-ins are always treated as already serialized:
Could we just check isObservableLike
?
Yeah, that would work I think. I'll try it when I get back to this.
This codepen shows the bug: https://codepen.io/kphillips86/pen/XLOBYb?editors=0011
If you change the URL, the
count
will be updated correctly, but if you click the+1
button, the route does not change.This is because
canReflect.serialize
does not serialize StacheElements correctly.