Stop losing webGL context on review complete
It makes things *much* faster
This commit is contained in:
parent
84604dfdc8
commit
838e24bbed
2 changed files with 3 additions and 3 deletions
|
|
@ -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();
|
||||
}
|
||||
});
|
||||
|
|
|
|||
|
|
@ -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) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue