This commit is contained in:
andbi 2025-11-19 20:22:22 -06:00
parent aa7c30950c
commit 72716e1c28
41 changed files with 15461 additions and 0 deletions

View 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
);
};