- Added parameter `nextIndex` to `onLeave` callback. #382, #375