initial
This commit is contained in:
parent
aa7c30950c
commit
72716e1c28
41 changed files with 15461 additions and 0 deletions
10
frontend/app/composables/application.ts
Normal file
10
frontend/app/composables/application.ts
Normal file
|
|
@ -0,0 +1,10 @@
|
|||
import { AppState } from "~/ui";
|
||||
|
||||
// Important: this exposes a global (per web app) state of type `AppState`.
|
||||
// As with any other `Ref` variable, when the state changes, dependent views are automatically updated.
|
||||
export const appState = (): Ref<AppState> => {
|
||||
return useState(
|
||||
"some-unique-state-key-1",
|
||||
() => new AppState(new Date()) // Initial value
|
||||
);
|
||||
};
|
||||
Loading…
Add table
Add a link
Reference in a new issue