Storage not persisting (browser) - SOLVED

I have the following and it does set the item, however if i refresh the browser and check again, there is nothing in“userId”)

What am i doing wrong?

  setUserID(userId) {
    console.log("setting userid to " + userId);"userId", userId).then(() => {"userId").then((value) => {
            console.log("showing set user from storage " + value);
    this.userId = userId;

I initially installed sqllite using cordova plugin add cordova-sqlite-storage --save however removing it didnt make a diff (tried relying on native storage)

UPDATE: i was calling clear without realizing (all fixed now)