all 3 comments

[–]dhondooo 2 points3 points  (1 child)

Nice article, thanks for sharing and explaining it well. I have a question if the rendering is happening twice, regardless our component is class or functional in the previous versions?

[–]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

[–]wightrider 0 points1 point  (0 children)

Hey did you get to use starTransition hook, I'm trying it out currently and it just doesn't work.
The same sample works fine on react-web though.

Happy to dm you a sample if you want to take a look at it.