The practical ordering is insertion effects before layout effects, and ordinary effects after paint.
Question 15 of 20 in useInsertionEffect Quiz