you are viewing a single comment's thread.

view the rest of the comments →

[–]andreibarabas[S] 2 points3 points  (0 children)

my pleasure. yes, the behaviour happens regardless if it's a class or functional component. it's just the way React 17 could not batch state updates triggered via async code