Skip to content
Source
Sign inSign up
pingdotgg/t3code

perf(mobile): yield to UI during shell cache encoding #12117

Mergedjuliusmarmingemerged 1 commit intoperf/mobile-thread-list-renders fromrefs/pull/12117/headmerged by juliusmarminge View on GitHub

Showing 3 changed files with 145 additions and 4 deletions.

x
0 of 3 viewed, 3 left
106 additions and 1 deletionapps/mobile/src/connection/environment-cache-store.test.tsModified
View file
@@ -1,4 +1,7 @@
-import { ORCHESTRATION_CACHE_SCHEMA_VERSION } from "@t3tools/client-runtime/platform";
+import {
+ ORCHESTRATION_CACHE_SCHEMA_VERSION,
+ StoredOrchestrationShellSnapshot,
+} from "@t3tools/client-runtime/platform";
import {
CommandId,
EnvironmentId,
@@ -12,10 +15,15 @@
import { describe, expect, it } from "@effect/vitest";
import * as DateTime from "effect/DateTime";
import * as Effect from "effect/Effect";
+import * as Fiber from "effect/Fiber";
+import * as Schema from "effect/Schema";
+import { vi } from "vite-plus/test";
+import * as Deferred from "effect/Deferred";
import * as Option from "effect/Option";
​
import { type ClientCacheKind, MobileDatabase } from "../persistence/mobile-database";
import { make } from "./environment-cache-store";
+import { encodeStoredShellSnapshot } from "./shell-cache-encoding";
​
const ENVIRONMENT_ID = EnvironmentId.make("environment-1");
const PROJECT_ID = ProjectId.make("project-1");
@@ -308,3 +316,100 @@
}),
});