case "INITIALUPDATE":
return payload.map(({ id, title }) => ({
id,
title,
content:"Lorem, ipsum dolor sit"
}))
if (response.status === 200) {
// setData(response.data);
dispatch({ type: "INITIALUPDATE", payload: response.data });
setIsLoading(false);
return;
} else {
throw new Error("Failed to fetch users");
}