MCPcopy Create free account
hub / github.com/TanStack/hotkeys / handleCreateNew

Function handleCreateNew

examples/react/useHotkeySequenceRecorder/src/index.tsx:180–192  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

178 }
179
180 const handleCreateNew = () => {
181 const newShortcut: Shortcut = {
182 id: createId(),
183 name: '',
184 description: '',
185 sequence: [],
186 }
187 setShortcuts((prev) => [...prev, newShortcut])
188 setEditingId(newShortcut.id)
189 setDraftName('')
190 setDraftDescription('')
191 recorder.startRecording()
192 }
193
194 return (
195 <div className="app">

Callers

nothing calls this directly

Calls 2

createIdFunction · 0.70
startRecordingMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…