Closed erdongritian closed 5 years ago
Support questions should be asked on stackoverflow (with a ngrx tag) or the gitter channel.
I'm not sure if this is NgRx "its problem".
From the code snippets provided I also don't see something of localStorage
.
You could check if the environment config is correct for a prod build.
when i use ng build ,and put dist to tomcat ,it can find local storage in brower,but when i use ng build -prod,and put dist to tomcat,and then login ,there is no local storage,why? from package.json:
and some code:
when i use ng build -prod, after login,click other link,it is work, above code 'auth' is not null,but localstory is nothing. when i press F5 or refresh,the above code auth is null ,where is wrong. but when i ues ng build, not prod,it is work.and have localstory.