#dates with server functions

5 messages · Page 1 of 1 (latest)

clever silo
#

what are the best ways to pass dates through server functions? with trpc, they handle serialization/deseralization, but here it seems I need to do the work. Is there a way to make a transformer for those things?

lucid wagon
#

IDK if it's neccessarily the right solution but there are serialisers that you can define with createSerializationAdapter

bleak copper
#

Returning a date should work out of the box

#

Seroval (the serializer Start uses) supports them I think

manic sigil
#

yes it does