Currently, I am in the process of configuring the server. My main goal is to enable form editing. The basic functionality works smoothly - when simply adding an address, the POST requests are sent and the data gets updated. However, the problems arise when trying to modify the initialData that was passed. For some reason, the onSubmit function refuses to compile, even though I have double-checked the data arrival multiple times and verified that initialData contains all the necessary data for initialization.
const AddPointMap = ({ isOpen, onClose, onSubmitAddress, center, type, typeOfButton, initialData }) => {
// Functionality and state management logic here
};
export default React.memo(AddPointMap);
Despite console.log() checks and attempts to wrap the handleSubmit function in other function calls to trigger onSubmit, the issue persists. It seems like the solution might require a different approach or deeper debugging.