Add additional parameters to useForm hook with Mantine UI
I'm trying to add additional data to a useForm hook when the user creates a new post that is not relevant for the user and should not be shown in the form but must be sent to the API or it will not work. I found the meta option which as far as I understand should do exactly that. I'm using Mantine as UI framework so it is wrapped in refineCoreProps, but it doesn't work. The request does not include any additional parameter in the POST request. Any ideas what I'm doing wrong?
const {
getInputProps,
saveButtonProps,
setFieldValue,
refineCore: { formLoading },
} = useForm({
initialValues: {
id: "",
title: "",
},
refineCoreProps: {
meta: {
apiKey: "thisIsATest"
},
resource: "posts",
},
});
