Converts using full document state management

This commit is contained in:
2025-07-02 17:01:56 -07:00
parent 32c5c40466
commit eeb2ef04fd
12 changed files with 465 additions and 210 deletions

View File

@@ -1,10 +1,8 @@
import { AutoSaveTextarea } from "@/components/AutoSaveTextarea";
import { useCache } from "@/context/cache/CacheContext";
import { pb } from "@/lib/pocketbase";
import type { Session } from "@/lib/types";
export const SessionEditForm = ({ session }: { session: Session }) => {
const cache = useCache();
async function saveStrongStart(strongStart: string) {
const freshRecord: Session = await pb
.collection("documents")
@@ -14,7 +12,6 @@ export const SessionEditForm = ({ session }: { session: Session }) => {
strongStart,
},
});
cache.set(freshRecord);
}
return (