History Back Navigation

The Navigate Back API provides the controlled back navigation.


Usage

transition({
    type: MOBILE_BEFORE_NAVIGATE_BACK,
    canGoBack: true
})

transition({
    type: MOBILE_NAVIGATE_BACK,
    move: 'back'
})


API

ID Next States Description
MOBILE_BEFORE_NAVIGATE_BACK MOBILE_NAVIGATE_BACK This is a BEFORE event transition to start the history nativigation, it can be used to override and do custom logic and complete the transition with MOBILE_NAVIGATE_BACK.
MOBILE_NAVIGATE_BACK MOBILE_ON_LOADED This transition triggers the history navigation.

Props

name type default description
canGoBack boolean Indicates whether the browser can go back in history. False when the history stack is on the first entry.
move 'back' Indicates the browser to go gack in history. Force exits the app when the move is undefined