admin管理员组文章数量:1393034
Im using NGXS for state store in angular. While testing I had firefox logged in and launched chrome in private window. When I navigated, I saw that the ssr was flashing the other user's information for a brief second before hydration kicks in.
I need every store to be cleared for each user so the data is not being leaked between users.
I've looked a bit more into it and it kinda makes sense that the user that got ssr served had their data set already in the store and it was being used in the rendering of the next request.
I have found no mention of this issue anywhere and I am very confused as to how this is not a bigger deal when it comes to SSR and using stores like NGXS or NGRX.
本文标签: angularNGXS with SSR leaks user data between other usersStack Overflow
版权声明:本文标题:angular - NGXS with SSR leaks user data between other users - Stack Overflow 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1744687243a2619776.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论