I took a closer look and realized that the way you are trying to access Promise?.halakasId will not work directly in your useEffect dependency array. Promise is not typically how data is passed to a React component. You need to use useParams from next/navigation
import { useParams } from "next/navigation";
const { halakasId } = useParams();
Also use console and browser Network to see if you are getting halakasId. Hope you find it helpful