update: gui

This commit is contained in:
Dmitry Bushev 2024-11-18 16:21:40 +00:00
parent 58fbc9cf4d
commit 6cdeeb2dcd
No known key found for this signature in database
GPG Key ID: 87C16090D6910E91
3 changed files with 4 additions and 3 deletions

View File

@ -679,7 +679,7 @@ export const { injectFn: useGraphStore, provideFn: provideGraphStore } = createC
profilingInfo: update.profilingInfo ?? [],
fromCache: update.fromCache ?? false,
payload: update.payload ?? { type: 'Value' },
...(update.type ? { type: update.type } : {}),
type: update.type ?? [],
...(update.methodCall ? { methodCall: update.methodCall } : {}),
}
proj.computedValueRegistry.processUpdates([update_])

View File

@ -73,8 +73,9 @@ function updateInfo(info: ExpressionInfo, update: ExpressionUpdate) {
function combineInfo(info: ExpressionInfo | undefined, update: ExpressionUpdate): ExpressionInfo {
const isPending = update.payload.type === 'Pending'
const updateSingleValueType = update.type.at(0) // TODO: support multi-value (aka intersection) types
return {
typename: update.type ?? (isPending ? info?.typename : undefined),
typename: updateSingleValueType ?? (isPending ? info?.typename : undefined),
methodCall: update.methodCall ?? (isPending ? info?.methodCall : undefined),
payload: update.payload,
profilingInfo: update.profilingInfo,

View File

@ -195,7 +195,7 @@ export interface ExpressionUpdate {
/** The id of updated expression. */
expressionId: ExpressionId
/** The updated type of the expression. */
type?: string
type: string[]
/** The updated method call info. */
methodCall?: MethodCall
/** Profiling information about the expression. */