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

Function handleCreateNew

examples/solid/createHotkeyRecorder/src/index.tsx:182–194  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

180 }
181
182 const handleCreateNew = () => {
183 const newShortcut: Shortcut = {
184 id: createId(),
185 name: '',
186 description: '',
187 hotkey: '',
188 }
189 setShortcuts((prev) => [...prev, newShortcut])
190 setEditingId(newShortcut.id)
191 setDraftName('')
192 setDraftDescription('')
193 recorder.startRecording()
194 }
195
196 return (
197 <div class="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…