MCPcopy Create free account
hub / github.com/winfunc/opcode / generateTabId

Function generateTabId

src/contexts/TabContext.tsx:142–144  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

140 }, [tabs, activeTabId]);
141
142 const generateTabId = () => {
143 return `tab-${Date.now()}-${Math.random().toString(36).substr(2, 9)}`;
144 };
145
146 const addTab = useCallback((tabData: Omit<Tab, 'id' | 'order' | 'createdAt' | 'updatedAt'>): string => {
147 if (tabs.length >= MAX_TABS) {

Callers 2

loadTabsFunction · 0.85
TabProviderFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected