Closed IronBlood closed 1 month ago
@IronBlood I agree, clearStorage()
should only remove items set by storeItem()
. I can see that storeItem()
also sets an additional item where the type of the value is stored. These helper items are all suffixed with "p5TypeID"
. That means there is a way of easily identifying all items set by storeItem()
.
I'm happy to open a PR with the implementation @limzykenneth
@seralichtenhahn You can go ahead with a fix to match the documented behaviour. Thanks.
Most appropriate sub-area of p5.js?
p5.js version
No response
Web browser and version
No response
Operating system
No response
Steps to reproduce this
Code with comments are shown below. There should be a better way to handle with it, to avoid removing data set by other libraries or developers.