Description
Provide environment information
When using createHydrationHelpers
, everything is serialized except inputs. So having an input that's a Date
will cause errors.
Describe the bug
When using createHydrationHelpers
, everything is serialized except inputs. So having an input that's a Date
will cause errors.
To reproduce
Prefetch anything using createHydrationHelpers
with Date
or mongodb's ObjectId
as an input, using superjson and you'll still get an error.
Additional information
No response
๐จโ๐งโ๐ฆ Contributing
- ๐โโ๏ธ Yes, I'd be down to file a PR fixing this bug!