John Best
Posts: 0
Joined: Sun Apr 14, 2013 3:44 am

How do I figure out localStorage.clear():

I was trying to clear localstorage before I started my App. I added localStorage.clear(); to my login routine .. now I can't get anything to really work, What can I do to fix this?

Igor
Posts: 0
Joined: Tue Apr 02, 2013 12:05 pm

How do I figure out localStorage.clear():

Hello,

Please clarify what do you mean about
[quote:]
now I can't get anything to really work
[/quote]

Igor
Posts: 0
Joined: Tue Apr 02, 2013 12:05 pm

How do I figure out localStorage.clear():

If your app depends on some local storage variables and as they were cleared, something fails somewhere. You can use the Console to debug and see what's happening.

John Best
Posts: 0
Joined: Sun Apr 14, 2013 3:44 am

How do I figure out localStorage.clear():

So I put localStorage.clear() in my login JavaScript . I saved it and hit test. My login hits a rest service and it appears to work . From their it drops you off on a page that hits another rest service and loads a list which I bind to a list component .. This no longer works ... Even after I commented out the localStorage.clear()
I can't tell which local storage variables are gone and the console log is printing nothing in places where the variables used to be ..
I feel like I messed up my environment because even if I test it on the phone it's still broke .. If I hit the services directly they are fine . I'll continue to debug but I was hoping someone had seen this before and knew a easy fix..

Maryna Brodina
Posts: 0
Joined: Thu Apr 05, 2012 7:27 am

How do I figure out localStorage.clear():

Hello! Looks like you didn't set some localStorage variables which you need to get you service working. After you clear localStorage there are no variables and services do not work. Please check your app logic.

Return to “Issues”