-
Notifications
You must be signed in to change notification settings - Fork 17
Open
Description
Is it in your roadmap to have destructuring parsing result?
Looks cleaner I guess
Thanks
export async function action({ request }: ActionFunctionArgs) {
const { success, error, data } = await parseFormSafe(request, schemaProfile, { parser });
if (!success) {
return json({ error, data: null });
}
return json({ error: null, data });
}elartix
Metadata
Metadata
Assignees
Labels
No labels