getSnapshot runs during rendering, so it should be pure and only read the snapshot value.
Question 12 of 20 in useSyncExternalStore Quiz