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
LitElement configures reactive properties, but this behavior is currently difficult to extend and customize. Making property creation and metadata easily customizable would unlock many use specific cases that users have asked for but that we do not want to burden everyone with by adding the behavior to the core library.
Scope
Make property metadata easily customizable.
One approach is to create static methods for setting/getting property metadata for a property.
This work must also ensure that metadata can continue to be typed correctly in TypeScript.
Make property accessors easily customizable. While users can currently override static createProperty, the code for making a property reactive is private.
One approach is to rename and expose the private _requestUpdate method.
This leaves private storage as the only not easily callable work done in createProperty. This could be sugared or left to overriders to deal with.
Acceptance criteria and must have scope
Add a set of tests that prove that the requested use cases can be implemented by adding this features. For example:
Initiative / goal
LitElement configures reactive properties, but this behavior is currently difficult to extend and customize. Making property creation and metadata easily customizable would unlock many use specific cases that users have asked for but that we do not want to burden everyone with by adding the behavior to the core library.
Scope
static createProperty
, the code for making a property reactive is private._requestUpdate
method.createProperty
. This could be sugared or left to overriders to deal with.Acceptance criteria and must have scope
Add a set of tests that prove that the requested use cases can be implemented by adding this features. For example:
The text was updated successfully, but these errors were encountered: