Artem Goncharov
1 min readMay 21, 2020

--

Thank you for the great article!

I have a couple of questions, would you help to answer them?

  1. If I have stateless widgets how can I implement async calls just before displaying of the widget? You provided example of statfull widged with the special function (dependeciesUpdated or something like this) overridden, but in case of stateless widget we don’t have such a choice, right?
  2. In case of TextField + Redux what is the proper way to fill the TextField from the state? If I update the value in TextField from the state every time the value changes — I need to move cursor to the end of text so user can type in text in a proper place but sometimes this takes time and user type text in the middle of the text. If I don’t update text in the TextField from the state then how can fill the text?

Thanks in advance!

--

--

No responses yet