Links

useApp

Usage

Use the hook with no input parameters.
const {
app,
appProperties,
qTitle,
qLastReloadTime,
qMigrationHash,
qSavedInProductVersion,
qThumbnail,
qHasSectionAccess,
doReload,
} = useApp();

useApp Options

No options can be passed into the hook

App Properties

The following properties are returned from the hook
  • app: <object>
    • This si the global object retunred when opeing a new session
  • appProperties: <object>
    • An object which contains qTitle, qLastReloadTime, qMigrationHash, qSavedInProductVersion, qThumbnail and qHasSectionAccess. (see below for descriptions)
  • qTitle: <string>
    • Application title
  • qLoadReloadTime: <string>
    • Last reload time of the app..
  • qMigrationHash: <string>
    • Internal property reserved for app migration. Patch version of the app. Do not update
    qSavedInProductionVersion: <string>
    • Internal property reserved for app migration. The app is saved in this version of the product. Do not update.
    qThumbnail: <string>
    • Relative path of the thumbnail.
    qHasSectionAccess: <bool>
    • If true the app has section access configured.
    doReload: Function
    • Reloads the application.
    .