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 this.storage.get(“userId”)

What am i doing wrong?

  setUserID(userId) {
    console.log("setting userid to " + userId);
    this.storage.set("userId", userId).then(() => {
        this.storage.get("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)