hi this is the code where problem happens
const transitions = useTransition(currentPageData, {
from: { opacity: 0, transform: "translateY(-100px)" },
enter: { opacity: 1, transform: "translateY(0px)" },
leave: { opacity: 0, transform: "translateY(-100px)" },
key: currentPageData =>currentPageData.id,
});
the problem is when I send DELETErequest to delete an item and when the " leave: " property happens it sends an extra POST request ( i don't even know how that request is happening, I didn't write that) for example if I have 2 fields filled with some data when I delete an item it will make another item itself