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

The Innovative Form Builder – IvyForms, version 0.2. 17 lines.

- Page: https://pluginprobe.com/plugins/ivyforms/0.2/code/frontend/src/stores/useGlobalState.ts
- Raw: https://pluginprobe.com/plugins/ivyforms/0.2/raw/frontend/src/stores/useGlobalState.ts
- Modified: 2025-07-24T13:31:58+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.2/code/frontend/src/stores/useGlobalState.ts#L10-L20`.

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

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

```
