import React from 'react'; import {Droppable} from "@hello-pangea/dnd"; import {useShopStore} from "./shop_store"; // #!render_count import {useRenderCount} from "@uidotdev/usehooks"; import {BacklogGroups} from "./BacklogGroups"; import {SearchBar} from "./SearchBar"; import {BacklogSearchResult} from "./BacklogSearchResult"; /** * Component that renders the backlog in the aside */ export function Backlog() { // #!render_count const renderCount = useRenderCount(); const data = useShopStore((state) => state.groups); const items = useShopStore((state) => state.cards); const onClickToggleMobileSideMenu = useShopStore((state) => state.switchSideMenu); const isMobile = useShopStore((state) => state.isMobile); // #!render_count console.log("Backlog renders: ", renderCount) return ( {(provided) => (
{isMobile ? (
) : null} {provided.placeholder && (
{provided.placeholder}
)}
)}
); }