Closed nolimits4web closed 6 years ago
@nolimits4web, in Framework7 React, I did it in componentWillReceiveProps
and that seemed to make F7 React work the same as F7 Vue.
Read this https://reactjs.org/blog/2018/03/27/update-on-async-rendering.html this morning. Looks like “will” hooks are going to be deprecated soon
@nolimits4web - nice, hadn't read that. I suppose we had better stop using them then. It's just a matter of ensuring that it matches up with Vue's behavior, since the timing can be important in a lot of cases in F7 especially.
Fixed with bced76e640dcc81fece9c1b60a76ac942b3df6bb
Should be in
componentWillUpdate
orcomponentDidUpdate
. @bencompton do you have an idea what is the better hook to place it?Usage, same as in Vue component with
props
/state
prefix: