I wanted to add further clarification to the importance of #465, because I realized there was not already an open issue about it.
We have an application where the server (clj) wants to send a serialized datascript database to the client (cljs). The database contains values that are BigDecimals.
Currently, datascript treats number?the same way in clj and cljs, but clojurescript has no concept of a BigDecimal.
465 allows the freeze-fn and thaw-fn to handle BigDecimals. In our case, we have a cljs thaw-fn that decodes BigDecimal into decimal.js types, and this is working for us in our app.
I wanted to add further clarification to the importance of #465, because I realized there was not already an open issue about it.
We have an application where the server (clj) wants to send a serialized datascript database to the client (cljs). The database contains values that are BigDecimals.
Currently, datascript treats
number?
the same way in clj and cljs, but clojurescript has no concept of a BigDecimal.465 allows the
freeze-fn
andthaw-fn
to handle BigDecimals. In our case, we have a cljs thaw-fn that decodes BigDecimal into decimal.js types, and this is working for us in our app.