()
| 1608 | } |
| 1609 | |
| 1610 | const MutationStatusCount: Component = () => { |
| 1611 | const success = createSubscribeToMutationCacheBatcher( |
| 1612 | (mutationCache) => |
| 1613 | mutationCache() |
| 1614 | .getAll() |
| 1615 | .filter( |
| 1616 | (m) => |
| 1617 | getMutationStatusColor({ |
| 1618 | isPaused: m.state.isPaused, |
| 1619 | status: m.state.status, |
| 1620 | }) === 'green', |
| 1621 | ).length, |
| 1622 | ) |
| 1623 | |
| 1624 | const pending = createSubscribeToMutationCacheBatcher( |
| 1625 | (mutationCache) => |
| 1626 | mutationCache() |
| 1627 | .getAll() |
| 1628 | .filter( |
| 1629 | (m) => |
| 1630 | getMutationStatusColor({ |
| 1631 | isPaused: m.state.isPaused, |
| 1632 | status: m.state.status, |
| 1633 | }) === 'yellow', |
| 1634 | ).length, |
| 1635 | ) |
| 1636 | |
| 1637 | const paused = createSubscribeToMutationCacheBatcher( |
| 1638 | (mutationCache) => |
| 1639 | mutationCache() |
| 1640 | .getAll() |
| 1641 | .filter( |
| 1642 | (m) => |
| 1643 | getMutationStatusColor({ |
| 1644 | isPaused: m.state.isPaused, |
| 1645 | status: m.state.status, |
| 1646 | }) === 'purple', |
| 1647 | ).length, |
| 1648 | ) |
| 1649 | |
| 1650 | const error = createSubscribeToMutationCacheBatcher( |
| 1651 | (mutationCache) => |
| 1652 | mutationCache() |
| 1653 | .getAll() |
| 1654 | .filter( |
| 1655 | (m) => |
| 1656 | getMutationStatusColor({ |
| 1657 | isPaused: m.state.isPaused, |
| 1658 | status: m.state.status, |
| 1659 | }) === 'red', |
| 1660 | ).length, |
| 1661 | ) |
| 1662 | |
| 1663 | const theme = useTheme() |
| 1664 | const css = useQueryDevtoolsContext().shadowDOMTarget |
| 1665 | ? goober.css.bind({ target: useQueryDevtoolsContext().shadowDOMTarget }) |
| 1666 | : goober.css |
| 1667 | const styles = createMemo(() => { |
nothing calls this directly
no test coverage detected
searching dependent graphs…