QuizNot attempted
Urgent vs transition updates
1–4 to choose, Enter to submit
Show answer & explanation
Correct answer:
- First call is urgent (synchronous priority), second is non-urgent; final displayed value is still
count + 2after transition settles
- The first
setCountis a normal (urgent) update - the one inside
startTransitionis a lower-priority, interruptible transition. - Both still apply, so the final value is
count + 2once the transition settles. - Not 'identical': priority is per update, not per event handler.
- Not 'first ignored': transitions never drop other updates.
- Not 'transition blocks the first': the urgent update renders first, possibly before the transition.