feat: instrument analysis
This commit is contained in:
@@ -28,8 +28,10 @@ export function TabsProvider({ children }: { children: ReactNode }) {
|
||||
const forgetRoute = useCallback((r: string) =>
|
||||
setKept(p => { const n = new Set(p); n.delete(r); return n }), [])
|
||||
|
||||
const openInstrument = useCallback((id: string) =>
|
||||
setInstrumentIds(p => p.includes(id) ? p : [...p, id]), [])
|
||||
const openInstrument = useCallback((id: string) => {
|
||||
localStorage.setItem('last_instrument', id)
|
||||
setInstrumentIds(p => p.includes(id) ? p : [...p, id])
|
||||
}, [])
|
||||
|
||||
const closeInstrument = useCallback((id: string) =>
|
||||
setInstrumentIds(p => p.filter(x => x !== id)), [])
|
||||
|
||||
Reference in New Issue
Block a user