'use client' import { useTransition } from 'react' import { action } from './actions' export default function Page() { const [, startTransition] = useTransition() return (

This button will call a server action and pass something unserializable like a class instance. We expect this action to error with a reasonable message explaning what happened

) } class Foo { value = 42 }