use constants
Dispatch: batches actions with rAF