An interesting JavaScript Database (JSDB) edge case I just encountered:
If you’re persisting custom objects, please do NOT use setter methods (`set something () {…}`).
Use regular methods instead (`setSomething () {…}`) for predictable behaviour that likely matches your conceptual model of how things should work.
(This is due to how setters interact with proxies.)
Details: https://codeberg.org/small-tech/jsdb#custom-data-types
#JavaScriptDatabase #javascript #database #jsdb #accessors #SmallTech #SmallWeb #web #dev
#JavaScriptDatabase #javascript #database #jsdb #accessors #smalltech #SmallWeb #web #dev