# ivyforms/0.7/frontend/src/stores/useGlobalState.ts

The Innovative Form Builder – IvyForms, version 0.7. 23 lines.

- Page: https://pluginprobe.com/plugins/ivyforms/0.7/code/frontend/src/stores/useGlobalState.ts
- Raw: https://pluginprobe.com/plugins/ivyforms/0.7/raw/frontend/src/stores/useGlobalState.ts
- Modified: 2025-12-25T16:20:26+00:00

Line numbers below start at 1. Link to a line or a range by appending a fragment to the
page URL, for example `https://pluginprobe.com/plugins/ivyforms/0.7/code/frontend/src/stores/useGlobalState.ts#L10-L20`.

```typescript
import { defineStore } from 'pinia'

export const useGlobalState = defineStore('globalState', {
  state: () => ({
    currentPage: '',
    isFullScreenMode: false,
    isFullScreenModeInitialized: false,
    pageTitle: '',
  }),
  actions: {
    setCurrentPage(page: string) {
      this.currentPage = page
    },
    setFullScreenMode(isFullScreen: boolean) {
      this.isFullScreenMode = isFullScreen
      this.isFullScreenModeInitialized = true
    },
    setPageTitle(title: string) {
      this.pageTitle = title
    },
  },
})

```
