ready() {
super.ready();
// refresh data when document is attached to dom
console.log(this.existingInReady);
console.log(this.nonExistingInReady);
}
first log will have 'testing' , second one will be undefined. the same code launched in connectedCallback will return the right value for nonExistingInReady from redux store.
Hello,
consider following element configuration:
when doing something like:
first log will have 'testing' , second one will be undefined. the same code launched in connectedCallback will return the right value for
nonExistingInReady
from redux store.It seems that this is because the defaults are set here in https://github.com/tur-nr/polymer-redux/blob/master/src/index.js#L142 , and
ready
is fired beforeconnectedCallback
- polymer by default does set its own propertied at this time.