New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Ylem Component does not re-render when props changes #193
Comments
I've debugged the code and it seems to be related with the following lines of code: ylem/lib/observer-component.js Lines 40 to 49 in 1cf16a2
React.Component does not provide a default implementation for |
Interesting. I wonder if that ever worked or did something change. I'll try to look at this when I can. |
I believe that In our tests, we primarily bind props to the store to manage updates. (That's not to say your example shouldn't work, only identifying why it was missed in our tests). |
I also wanted to link the CodeSandbox that Ivo had created: https://codesandbox.io/s/ylem-props-issue-lmscf |
i think its related to can-observer.js inside lib its doing this.onDependencyChange = (newVal, oldVal) => {
this.dependencyChange(newVal, oldVal);
}; but the function depenedencyChange has no arguments :) dependencyChange() {
queues.deriveQueue.enqueue(this.onUpdate, this, [], { priority: this.order });
} |
Components implemented based on Ylem.Component are not updating the when props changes.
Here is a small example based on the Ylem sample CodeSandBox that reproduces the issue:
https://codesandbox.io/s/ylem-paginated-grid-demo-gnn6d?fontsize=14
The text was updated successfully, but these errors were encountered: