Hello all,
I had launched my chrome extension about 2 years ago using vanilla JS, CSS etc. and I want to rebuild my extension using react based version.
My question is,
- How will I make sure that the data stored in the 'chrome.storage.local' are retained and not get deleted?
- How can i test the same in my local machine?
Here 's what I did:
- I installed the (vanilla JS based) chrome extension in my laptop.
- In my new react based pkg, I added the public key of the current extension from developer dashboard under 'key' in the manifest.json.
- Now when I tried to load the react based pkg in 'My extensions' page the old one is replaced with this new pkg and I was able to see the required data stored in the 'storage'.
- But on every update in my local pkg, the new pkg in 'My extension' page seems to be replaced with the old (vanilla JS based) one. And I have to load the react based pkg everytime.
Anyways, plz do lmk what should I do here and what are the best practices that i need to keep in mind while doing this?
Thanks in advance.