my useActionData in my index is not inferring the types parsed in action function
export async function action({request}: ActionFunctionArgs) {
const parsedData = rootSchema.parse(responseData)
return json(parsedData)
} catch (error) {
console.error(error)
return json({error: 'Internal Server Error'}, 500)
}
}