3 ms·
If there are no other ways to update that state, the example will work fine. It might come back and bite you if you implement something that performs an async
by jameshart 4y ago
If there are no other ways to update that state, the example will work fine.
It might come back and bite you if you implement something that performs an async update of that state via a different path later.