|
|
|
|
|
by VanCoding
98 days ago
|
|
That's not what I mean. Even though it is serializable, it's still not the same when you serialize/deserialize it. For example `JSON.parse(JSON.stringify(Temporal.PlainYearMonth.from({year:2026,month:1}))).subtract({ years: 1})` won't work, because it misses the prototype and is no longer an instance of Temporal.PlainYearMonth. This is problematic if you use tRPC for example. |
|
https://developer.mozilla.org/en-US/docs/Web/JavaScript/Refe...