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

Function shouldRender

packages/devtools-a11y/src/core/components/IssueList.tsx:118–123  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

116 <For each={IMPACTS}>
117 {(impact) => {
118 const issues = () =>
119 ally.filteredIssues().filter((issue) => issue.impact === impact)
120
121 const shouldRender = () => {
122 if (ally.impactKey() !== 'all') {
123 return ally.impactKey() === impact
124 }
125 return issues().length > 0
126 }

Callers 1

A11yIssueListFunction · 0.85

Calls 1

issuesFunction · 0.85

Tested by

no test coverage detected