Skip to content

TourOrchestrator

reference
1 min readUpdated

Kind: Class

Source: atloria-monorepo/packages/tour-widget/src/orchestrator.ts

Methods

MethodSignatureReturns
initinit()Promise<void>

Where it refuses work

  • TourOrchestrator stops the work with an early return when !res.ok, in 2 places.
  • TourOrchestrator stops the work with an early return when busy.
  • TourOrchestrator stops the work with an early return when !isEligibleForAuto(exp, this.state).
  • TourOrchestrator stops the work with an early return when !items[idx].
  • TourOrchestrator stops the work with an early return when !states.
  • TourOrchestrator stops the work with an early return when location.href === this.lastUrl.

When something fails

  • TourOrchestrator handles failure in 15 places: it discards it silently in 10, turns it into a return value in 3, and logs it and continues in 2.

Was this page helpful?

Download as PDF