Remix.run Logo
▲ bombela an hour ago

You can use one generic enum with a trait holding the payload type. I posted an example as response to your first comment.