-
I know this forum is for When I do a Firestore subscription, data that is stored in the database as time stamps are provided as This is not a native JavaScript date and forces the application programmer to either learn new tricks, or manually convert with the While the method is sweet, it covers the code with if-this-field-then-convert code, for which reason I prefer to bulk-scan all the 1st level values for I would like to ask:
I grasp the benefit of using one type for storage and transmission, but would like to see them converted to If you regard this as a Good Thing, one can also think of a hybrid Timestamp+Date instance that fulfils the prototype of both. This would provide backwards compatibility. Here's the code I use for conversion ('Ref' is the Vue.js 3 reactivity type):
|
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
@schmidt-sebastian Can you share some insights on this? |
Beta Was this translation helpful? Give feedback.
@schmidt-sebastian Can you share some insights on this?