ImmortalDB icon indicating copy to clipboard operation
ImmortalDB copied to clipboard

Undefined should not be counted as value?

Open pySilver opened this issue 5 years ago • 2 comments

Consider the case:

  • 3 stores (cookie, localstorage, indexdb) are used.
  • 2 out of 3 loses value (no matter which).
  • Value counter makes 3rd value disappear too, since "undefined" response from first storages is treated as some value.

Expected behaviour: value will be recreated in 2 stores that returned undefined.

pySilver avatar Sep 19 '19 00:09 pySilver

Wonderful suggestion.

A sentinel value should be used instead of undefined.

gruns avatar Sep 20 '19 19:09 gruns

https://github.com/gruns/ImmortalDB/issues/37

gruns avatar Aug 20 '20 18:08 gruns