#dates with server functions
5 messages · Page 1 of 1 (latest)
5 messages · Page 1 of 1 (latest)
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?
IDK if it's neccessarily the right solution but there are serialisers that you can define with createSerializationAdapter
Returning a date should work out of the box
Seroval (the serializer Start uses) supports them I think
yes it does