Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions app/editor/store.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { createStore, useStore } from "@tanstack/react-store";
import { createStore, useSelector } from "@tanstack/react-store";

/**
* Type definition for the `NoteStore` state.
Expand Down Expand Up @@ -49,7 +49,7 @@ export const SystemStore = createStore<SystemStore>({
* @package
*/
export const useSystemStore = <T>(selector: (state: SystemStore) => T): T => {
return useStore(SystemStore, selector);
return useSelector(SystemStore, selector);
};

/**
Expand Down Expand Up @@ -123,5 +123,5 @@ export const setInitialNoteStore = (note: NoteStore) => {
* @package
*/
export const useNoteStore = <T>(selector: (state: NoteStore) => T): T => {
return useStore(NoteStore, selector);
return useSelector(NoteStore, selector);
};
4 changes: 2 additions & 2 deletions app/use-dark-mode.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { createStore, useStore } from "@tanstack/react-store";
import { createStore, useSelector } from "@tanstack/react-store";
import { useEffect } from "react";

/**
Expand Down Expand Up @@ -28,7 +28,7 @@ DarkThemeStore.subscribe((isDark) => {
* Does not register any effects — safe to call from multiple components
* without duplicating listeners.
*/
export const useIsDark = () => useStore(DarkThemeStore, (state) => state);
export const useIsDark = () => useSelector(DarkThemeStore, (state) => state);

/**
* Hook to use the dark theme. May be upgraded to include other
Expand Down
28 changes: 14 additions & 14 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,36 +16,36 @@
"e2e-ci": "pnpm build && PRODUCTION_READY=1 pnpm e2e"
},
"dependencies": {
"@biomejs/biome": "2.4.10",
"@biomejs/biome": "2.4.13",
"@fontsource-variable/inter": "5.2.8",
"@playwright/test": "1.59.0",
"@tailwindcss/vite": "4.2.2",
"@tanstack/react-store": "0.9.3",
"@playwright/test": "1.59.1",
"@tailwindcss/vite": "4.2.4",
"@tanstack/react-store": "0.11.0",
"@testing-library/dom": "10.4.1",
"@testing-library/jest-dom": "6.9.1",
"@testing-library/react": "16.3.2",
"@testing-library/user-event": "^14.6.1",
"@types/node": "25.5.0",
"@types/node": "25.6.0",
"@types/react": "19.2.14",
"@types/react-dom": "19.2.3",
"@vitejs/plugin-react": "6.0.1",
"@vitest/coverage-v8": "4.1.2",
"@vitest/coverage-v8": "4.1.5",
"clsx": "^2.1.1",
"dexie": "4.4.2",
"fake-indexeddb": "6.2.5",
"jsdom": "29.0.1",
"postcss": "^8.5.8",
"react": "19.2.4",
"react-dom": "19.2.4",
"jsdom": "29.1.1",
"postcss": "^8.5.13",
"react": "19.2.5",
"react-dom": "19.2.5",
"react-textarea-autosize": "^8.5.9",
"sonner": "2.0.7",
"tailwind-merge": "3.5.0",
"tailwindcss": "4.2.2",
"typescript": "6.0.2",
"tailwindcss": "4.2.4",
"typescript": "6.0.3",
"valibot": "1.3.1",
"vite": "8.0.3",
"vite": "8.0.10",
"vite-plugin-pwa": "1.2.0",
"vitest": "4.1.2"
"vitest": "4.1.5"
},
"packageManager": "pnpm@10.28.1",
"pnpm": {
Expand Down
Loading