MCPcopy Create free account
hub / github.com/TanStack/devtools / toggleSection

Function toggleSection

packages/devtools/src/tabs/plugin-marketplace.tsx:49–59  ·  view source on GitHub ↗
(framework: string)

Source from the content-addressed store, hash-verified

47 }
48
49 const toggleSection = (framework: string) => {
50 setCollapsedSections((prev) => {
51 const newSet = new Set(prev)
52 if (newSet.has(framework)) {
53 newSet.delete(framework)
54 } else {
55 newSet.add(framework)
56 }
57 return newSet
58 })
59 }
60
61 const matchesSearch = (card: PluginCard, query: string): boolean => {
62 if (!query) return true

Callers 1

PluginMarketplaceFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected