# useApp

useApp hook documentation

**useApp**()<br></br>
Hook function for page elements.

**Properties**

- `installation`<br></br>
  **type** _`object`_<br></br>
  An object with an id, installation status, and config object
  - `id`<br></br>
    **type** _`string`_<br></br>
    Id of the current installation
  - `config`<br></br>
    **type** _`any`_<br></br>
    Object used to store installation relevant config information
  - `status`<br></br>
    **type** _`string`_<br></br>
    Key of [`AppInstallationStatus`](https://hygraph.com/classic-docs/app-framework/constants/constants)<br></br>
- `context`<br></br>
  **type** _`object`_<br></br>
  Contextual information.<br></br>
  An object with project and environment properties<br></br>
  Environment context, including `authToken`, `enpoint`, `id`, and `name`<br></br>
- `historyPush`<br></br>
  **type** _`function`_<br></br>
  Function to redirect inside Hygraph (internal - path included)<br></br>
- `historyReplace`<br></br>
  **type** _`function`_<br></br>
  Function to replace the current entry on the history stack inside Hygraph (internal - path included)<br></br>
- `openAssetPicker`<br></br>
  **type** _`function`_<br></br>
  Function to open the Hygraph asset picker<br></br>
  See the Asset type in your Content API<br></br>
  [openAssetPicker example](https://hygraph.com/classic-docs/app-framework/examples/openassetpicker-method)<br></br>
- `openDialog`<br></br>
  **type** _`function`_<br></br>
  Opens a separate dialog where you can load data from an external source or create your own UI<br></br>
  [openDialog documentation](https://hygraph.com/classic-docs/app-framework/functions/opendialog)<br></br>
- `redirectParent`<br></br>
  **type** _`function`_<br></br>
  Function to make a full redirect (external - hostname + path included)<br></br>
- `showToast`<br></br>
  **type** _`function`_<br></br>
  Function to show Hygraph native toast<br></br>
  [showToast documentation](https://hygraph.com/classic-docs/app-framework/functions/showtoast)<br></br>
- `updateInstallation`<br></br>
  **type** _`function`_<br></br>
  Function to get the current app installation status, and update it<br></br>
  This function is only available inside the `setup` page<br></br>
  Installation status is a key of [`AppInstallationStatus`](https://hygraph.com/classic-docs/app-framework/constants/constants)<br></br>

**Returns**

`<AppProps>`<br></br>
`AppProps` are [common props](https://hygraph.com/classic-docs/app-framework/api-reference/api-reference-common) + `installation`

&nbsp;

&nbsp;
