Is there a way to use localstorage storage event?

Is there a way in wix/velo to receive the storage event that fires when localStorage updates?

I have a feature that uses localstorage but it behaves improperly across multiple tabs. Tab A and B are opened together. Tab A will updates an object in local storage on button click. When the same button is clicked in Tab B it overwrites the changes Tab A made.

I’m thinking that I need the storage event to detect changes to my localStorage key and update the value. Any idea how I would do that?