Put it in the service. It consumes a little memory, but it is much safer. Localstorage is not used much, and in practice it is rarely used by others. The specific way localstorage stores data is not clear. If other applications can also exist in it, they may affect each other.
localstorage exists locally What do you mean by this service? It is stored on the server. How to compare this depends on your needs and the use of the data
I have encountered pitfalls before that on iOS devices, incognito mode, localstorage and session storage cannot be used, and cannot be rewritten. . . .
Put it in the service. It consumes a little memory, but it is much safer. Localstorage is not used much, and in practice it is rarely used by others. The specific way localstorage stores data is not clear. If other applications can also exist in it, they may affect each other.
localstorage exists locally
What do you mean by this service? It is stored on the server. How to compare this depends on your needs and the use of the data
I have encountered pitfalls before that on iOS devices, incognito mode, localstorage and session storage cannot be used, and cannot be rewritten. . . .