(input: { home: boolean; current?: Tab })
| 272 | if (recentKey() !== key) setRecentKey(key) |
| 273 | }, |
| 274 | toggleHome(input: { home: boolean; current?: Tab }) { |
| 275 | if (input.home) { |
| 276 | const tab = store.find((tab) => tabKey(tab) === recentKey()) |
| 277 | if (tab) navigateTab(tab) |
| 278 | return |
| 279 | } |
| 280 | if (input.current) { |
| 281 | setRecentKey(tabKey(input.current)) |
| 282 | navigate("/") |
| 283 | return |
| 284 | } |
| 285 | navigate("/") |
| 286 | }, |
| 287 | state<T>(tab: Tab, name: string, init: () => T) { |
| 288 | return memory.ensure(tabKey(tab), name, init) |
| 289 | }, |
nothing calls this directly
no test coverage detected