Class: TargetRouteEntryUtils

TargetRouteEntryUtils(mainRouterInstance)

new TargetRouteEntryUtils(mainRouterInstance)

Parameters:
Name Type Description
mainRouterInstance MainRouter
Source:

Members

currentInflatedTargetRouteEntry :InflatedRoutingInfo

Type:
  • InflatedRoutingInfo
Source:

currentTargetRouteEntry :ExtendedRoutingInfo

Type:
  • ExtendedRoutingInfo
Source:

historyStack :Object

Holds previous entries used in back pop to get data for restoration of stateUpdated on consolidation, but sent back in consolidation data before pop, if url given for new inflated EXACTLY matches previous and is a pop (back event specifically). If not, then state not saved and warn (should not be the case btw, if state well saved. Or maybe opened the app afresh)
Type:
  • Object
Source:

tempInflatedTargetRouteEntry :InflatedRoutingInfo

Has a valid value only when route is different
Type:
  • InflatedRoutingInfo
Source:

tempTargetRouteEntry :RoutingInfo

Has a valid value only when route is different
Type:
  • RoutingInfo
Source:

Methods

consolidateTargetRouteEntry(args) → {RouteBuildInfo}

Parameters:
Name Type Description
args RouteBuildPipelineArgs
Source:
Returns:
Type
RouteBuildInfo

flushTemps()

Removes all temps
Source:

getDiffTargetEntry(targetRouteEntry) → {DiffTargetEntryInfo}

INTERNAL Purpose of algo is to determine from where we'll start inflating new fragments Return the diff and diffInfo? ie. { diffTargetEntry, childDiffIndex } If childDiffIndex is not undefined (-1), then use currentInflatedTargetRouteEntry to source target and all inflated children before index, then add to array inflated children from childDiffIndex to end of diffTargetEntry nestedChildren array inclusive childDiffIndex
Parameters:
Name Type Description
targetRouteEntry RoutingInfo
Source:
Returns:
Type
DiffTargetEntryInfo

saveRouteStates(savedState)

Parameters:
Name Type Description
savedState SavedFragmentState
Source:

(static) defaultInflatedTargetRouteEntry(fullUrl) → {InflatedRoutingInfo}

Parameters:
Name Type Description
fullUrl string
Source:
Returns:
Type
InflatedRoutingInfo