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
Due to refactor inside View component between versions 0.15.0 and 0.16.0 error occur when you try to update.
Consider for following code:
function renderViewModel(viewModel: any) {
ReactDOM.render(<View vm={viewModel} useLifecycle />, document.getElementById("root"));
}
When you changes viewModel via prop at 0.15.0 activate callback run always. Now in 0.16.0 (and higher) activation callback run only when componentDidMount and doesn't run when VM being changed.
The text was updated successfully, but these errors were encountered:
kopecmi8
pushed a commit
to kopecmi8/frui.ts
that referenced
this issue
Sep 30, 2021
kopecmi8
changed the title
View component with useLifecycle doesn't run activate when VM changed
View component with useLifecycle doesn't run activate when VM being changed
Sep 30, 2021
kopecmi8
pushed a commit
to kopecmi8/frui.ts
that referenced
this issue
Sep 30, 2021
…ed. (#50)
* #49 Run activate inside componentDidUpdate too when VM is being changed.
* #49 Better naming
Co-authored-by: Michal Kopecký <michal.kopeck@eman.cz>
Due to refactor inside View component between versions 0.15.0 and 0.16.0 error occur when you try to update.
Consider for following code:
When you changes viewModel via prop at 0.15.0
activate
callback run always. Now in 0.16.0 (and higher) activation callback run only when componentDidMount and doesn't run when VM being changed.The text was updated successfully, but these errors were encountered: