Not able to access window.screen and localStorage
ishan123456789 opened this issue · comments
I'm getting undefined when trying to get height of screen while running ssr and localStorage is also not available.I'm trying to implement your app into my by copying every file and the required parts, might be that I'm missing something important.
Because you have no window.screen
and localStorage
on server.
Any option available to have present code work on server as well. As my ssr code is rendered same way as browser code due to this error.
When I do ctrl + u
I only see two scripts and app-root
in both browser and server
Because you have no window.screen and localStorage on server.
use cookies for cross save server-browser.