defaultViewTransition: {
types: ({ fromLocation, toLocation, pathChanged }) => {
let direction = 'none'
if (fromLocation && pathChanged) {
const fromIndex = fromLocation.state.__TSR_index
const toIndex = toLocation.state.__TSR_index
direction = fromIndex > toIndex ? 'right' : 'left'
}
return [`slide-${direction}`]
}
}
defaultViewTransition: {
types: ({ fromLocation, toLocation, pathChanged }) => {
let direction = 'none'
if (fromLocation && pathChanged) {
const fromIndex = fromLocation.state.__TSR_index
const toIndex = toLocation.state.__TSR_index
direction = fromIndex > toIndex ? 'right' : 'left'
}
return [`slide-${direction}`]
}
}