Stop losing webGL context on review complete

It makes things *much* faster
This commit is contained in:
Eli Ribble 2026-04-16 07:43:17 +00:00
parent 84604dfdc8
commit 838e24bbed
No known key found for this signature in database
2 changed files with 3 additions and 3 deletions

View file

@ -23,7 +23,7 @@ export const useSessionStore = defineStore("session", () => {
// Subscription
SSEManager.subscribe((msg: SSEMessage) => {
if (msg.type !== "sync:session") {
if (msg.type == "sync:session") {
fetchSession();
}
});

View file

@ -280,11 +280,11 @@ async function submitReview(action: "committed" | "discarded"): Promise<void> {
};
const response = await fetch("/api/review/pool", {
method: "POST",
body: JSON.stringify(payload),
headers: {
"Content-Type": "application/json",
},
body: JSON.stringify(payload),
method: "POST",
});
if (!response.ok) {