queueHookStateUpdate

Registers the given block to be run before the next layout calculation to update hook state.