MCPcopy Create free account
hub / github.com/Effect-TS/effect / commit

Function commit

packages/effect/src/ui/kit/Menu.ts:944–954  ·  view source on GitHub ↗
(
  base: Base,
  before: MenuModel,
  after: MenuModel,
  reason: MenuHighlightReason
)

Source from the content-addressed store, hash-verified

942}
943
944const commit = (
945 base: Base,
946 before: MenuModel,
947 after: MenuModel,
948 reason: MenuHighlightReason
949) =>
950 before.active === after.active
951 ? base.set(after)
952 : base.set(after).emit(
953 MenuEvents.Highlighted({ value: after.active, reason })
954 )
955
956const initialActive = (
957 props: MenuProps,

Callers 7

openFunction · 0.70
activateFunction · 0.70
navigateFunction · 0.70
typeKeyFunction · 0.70
enterSubmenuFunction · 0.70
Menu.tsFile · 0.70
makeStorageFunction · 0.50

Calls 2

setMethod · 0.65
emitMethod · 0.65

Tested by

no test coverage detected