Next.js Discord

Discord Forum

Serialization issue in server components/actions

Unanswered
American posted this in #help-forum
Open in Discord
AmericanOP
Hello

Sorry for this vague question, but has anyone else had problem with Dates being serialized as strings? I haven't been able to reproduce the issue, but for 1 user all Dates are converted into strings, which breaks some validation I'm doing.

Just wanted to check if anyone has experienced something similar

Edit: seems to be chrome-based browsers only

2 Replies

AmericanOP
Now it went away, without a new deploy. Weird
Aha, unstable_cache does not deserialize dates