I am trying to migration some v1 stuff to v2 and having some difficulty porting my custom decorator:
I have a list component with properties that are used to filter a list via an api, the state of the properties should be reflected in the browser url as queryparameters. In v1 I wrote a custom decorator that would override the set and get methods for the properties. It looked like this:
@filterParams() author;
@filterParams() genre;
@filterParams({type: 'boolean', default: 'false'}) published;
changing values in the UI of the component would be reflected in the URL
http://example.com/books?author=jack&genre=crime
If the page is loaded with queryparams the UI state is set from the queryparams.
My custom getter is working but when I change values in the UI I get the following error:
Uncaught Error: Trying to set value for property name in dirty checker
Are there any examples of how to build custom decorators that play nice with the Binding Engine and would avoid dirty checking?