How to detect when local storage is cleared
问题 I have some values in the local storage added in page A. When I go page B the local storage should not be cleared, but it is. This is a programmatic error. However, I cannot track it correctly to know when this happens. I tried just doing a setInterval to log in the console the value of my local storage each 1 second and I lose my values when I navigate out. I wonder if there is a way to detect or tool to determine in what moment I clear my local storage like a call stack more than tracing