最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

angular - NGXS with SSR leaks user data between other users - Stack Overflow

programmeradmin2浏览0评论

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.

发布评论

评论列表(0)

  1. 暂无评论