4 ms·
No problem, I'm sorry for the confusion. I think your use case might be solved by this approach: https://reactjs.org/docs/hooks-faq.html#how-do-i-implement-get
by danabramov 8y ago
No problem, I'm sorry for the confusion. I think your use case might be solved by this approach:
https://reactjs.org/docs/hooks-faq.html#how-do-i-implement-getderivedstatefromprops https://reactjs.org/docs/hooks-faq.html#how-do-i-implement-g...