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

Function addToHistory

examples/solid/createHotkeySequences/src/index.tsx:19–22  ·  view source on GitHub ↗
(action: string)

Source from the content-addressed store, hash-verified

17 const [history, setHistory] = createSignal<Array<string>>([])
18 const [helloSequenceEnabled, setHelloSequenceEnabled] = createSignal(true)
19 const addToHistory = (action: string) => {
20 setLastSequence(action)
21 setHistory((h) => [...h.slice(-9), action])
22 }
23
24 createHotkeySequences([
25 {

Callers 1

AppFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…