Skip to content

Commit

Permalink
refactor: Removed unused component reset functionality
Browse files Browse the repository at this point in the history
  • Loading branch information
iliubinskii committed Sep 2, 2024
1 parent 2cbb10c commit 61230a3
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions src/app/categories/[id]/ClientPage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ import { COMPANY_LIMIT } from "../../../consts";
import type { FC } from "react";
import Head from "next/head";
import { PageLayout } from "../../../layouts";
import React, { useCallback, useEffect, useState } from "react";
import React, { useCallback, useState } from "react";
import { api } from "../../../api";
import { lang } from "../../../langs";

Expand Down Expand Up @@ -42,11 +42,6 @@ export const ClientPage: FC<Props> = ({
}
}, [category, companies, dispatch, nextCursor]);

useEffect(() => {
setCompanies(initialCompanies);
setNextCursor(initialNextCursor);
}, [initialCompanies, initialNextCursor]);

return (
<>
<Head>
Expand Down

0 comments on commit 61230a3

Please sign in to comment.