Skip to content

Instantly share code, notes, and snippets.

View LarsHassler's full-sized avatar

Lars Haßler LarsHassler

  • C4 - explosive marketing
  • Cologne, Germany
View GitHub Profile
@LarsHassler
LarsHassler / RemixFormExample.tsx
Last active January 18, 2023 10:29
Example of some Remix-Form Issues I can't solve
import type { ActionFunction, LoaderArgs } from "@remix-run/node";
import { useState } from "react";
import { json, redirect } from "@remix-run/node";
import { createForm, performMutation } from "remix-forms";
import { z } from "zod";
import { makeDomainFunction } from "domain-functions";
import {
Form as FrameworkForm,
useActionData,
useSubmit,