useApp

Usage

Use the hook with no input parameters.
1
const {
2
app,
3
appProperties,
4
qTitle,
5
qLastReloadTime,
6
qMigrationHash,
7
qSavedInProductVersion,
8
qThumbnail,
9
qHasSectionAccess,
10
doReload,
11
} = useApp();
12
Copied!

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.
    .
Last modified 6mo ago