Merge origin/master (session ISession face) and adapt the goal ref read
The runtime's new outward session contract exposes projections as a
ProjectionsFace (faceOf only); the ui-goal verb closure reads the current
value through faceOf('goal').getSnapshot() instead of the store-level get.
Catalogs regenerated after the merge.
This commit is contained in:
@@ -71,7 +71,10 @@ function bench(options: { projection?: GoalProjection | null | undefined; failWi
|
||||
ctx.provide('sessions', {
|
||||
binding: (id: SessionId) => ({
|
||||
sessionId: id,
|
||||
session: { projections: { get: (key: string) => (key === 'goal' ? options.projection : undefined) } },
|
||||
session: { projections: { faceOf: (key: string) => ({
|
||||
getSnapshot: () => (key === 'goal' ? options.projection : undefined),
|
||||
subscribe: () => () => {},
|
||||
}) } },
|
||||
ctx,
|
||||
}),
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user