The moment when I require the Bloodhound JS library (v 1.2.1) on my page with,
var Bloodhound = require('bloodhound-js');
the localstorage is wiped clean. I am storing some values there so right now I have a work-around in place where I read all the values, require Bloodhound, and then write them back to localstorage.
This is not a very nice solution though, so I was wondering if there is anyway to make Bloodhound not clear the Localstorage on load.
http://stackoverflow.com/questions/36931826/bloodhound-js-clears-localstorage-on-load
+1 for this
This issue is related to an issue in this localStorage library:
https://github.com/pqx/storage2/issues/1
Bloodhound should remove its dependency on this library, since it has this ridiculous flaw.
Most helpful comment
This issue is related to an issue in this localStorage library:
https://github.com/pqx/storage2/issues/1
Bloodhound should remove its dependency on this library, since it has this ridiculous flaw.