mirror of
https://github.com/enso-org/enso.git
synced 2024-11-29 03:08:55 +03:00
update: gui
This commit is contained in:
parent
58fbc9cf4d
commit
6cdeeb2dcd
@ -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_])
|
||||
|
@ -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,
|
||||
|
@ -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. */
|
||||
|
Loading…
Reference in New Issue
Block a user