no more ValueToUI

This commit is contained in:
Dustin Swan 2026-02-11 22:50:56 -07:00
parent e12809efba
commit dd6dad76c8
No known key found for this signature in database
GPG key ID: 30D46587E2100467
3 changed files with 16 additions and 169 deletions

View file

@ -1,5 +1,3 @@
// import type { UIValue } from './types';
import { valueToUI } from './valueToUI-compiled';
import { render, hitTest } from './ui';
type UIValue = any;
@ -92,7 +90,7 @@ export function runAppCompiled(app: App, canvas: HTMLCanvasElement, rt: any) {
}
const viewResult = instance.view(instance.state);
let viewUI = valueToUI(viewResult);
let viewUI = viewResult;
if (ui.focusable) {
viewUI = {
@ -139,7 +137,7 @@ export function runAppCompiled(app: App, canvas: HTMLCanvasElement, rt: any) {
try {
const uiValue = app.view(state)(viewport);
const ui = valueToUI(uiValue);
const ui = uiValue;
const expandedUI = expandStateful(ui, [], renderedKeys);
// clean up unrendered instances