We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7ba1718 commit 3179bd5Copy full SHA for 3179bd5
1 file changed
src/hooks/useFeedKeysWithAssignedCards.ts
@@ -8,7 +8,7 @@ import useOnyx from './useOnyx';
8
type FeedKeysWithAssignedCards = Record<string, true>;
9
10
function useFeedKeysWithAssignedCards(): FeedKeysWithAssignedCards | undefined {
11
- const feedKeysWithCardsSelector = useCallback((allWorkspaceCards: OnyxCollection<WorkspaceCardsList>) => buildFeedKeysWithAssignedCards(allWorkspaceCards));
+ const feedKeysWithCardsSelector = useCallback((allWorkspaceCards: OnyxCollection<WorkspaceCardsList>) => buildFeedKeysWithAssignedCards(allWorkspaceCards), []);
12
const [feedKeysWithCards] = useOnyx(ONYXKEYS.COLLECTION.WORKSPACE_CARDS_LIST, {
13
selector: feedKeysWithCardsSelector,
14
});
0 commit comments