MCPcopy Create free account
hub / github.com/bytebase/bytebase / handler

Function handler

frontend/src/react/lib/toast.ts:69–72  ·  view source on GitHub ↗
(event: Event)

Source from the content-addressed store, hash-verified

67// main.ts imports this module synchronously to make that ordering reliable.
68if (typeof window !== "undefined") {
69 const handler = (event: Event) => {
70 const detail = (event as CustomEvent<NotificationCreate>).detail;
71 if (detail) pushReactNotification(detail);
72 };
73 window.addEventListener(VueShellBridgeEvent.notification, handler);
74 if (import.meta.hot) {
75 import.meta.hot.dispose(() => {

Callers 4

defaultMdNodeToReactFunction · 0.50
TestMCPAuthMiddlewareFunction · 0.50
registerPprofFunction · 0.50

Calls 1

pushReactNotificationFunction · 0.85

Tested by 2

TestMCPAuthMiddlewareFunction · 0.40