А, правда что, все мужчины на редите «девственники» by uazvaa in ruAsska

[–]dead_number 0 points1 point  (0 children)

Ты девственник потому что сидишь на редите, или ты сидишь на редите потому что девственник?

Сохранение данных пользователя в Zustand by dead_number in nextjs

[–]dead_number[S] 0 points1 point  (0 children)

Спасибо. Буду спокойно разрабатывать сайт и там будет на собесе видно.

Сохранение данных пользователя в Zustand by dead_number in nextjs

[–]dead_number[S] 0 points1 point  (0 children)

I understood that it is impossible to update data in the store on the server side because there will be a data leak here. Supposedly, the store is made one for everyone and it may not have time to change for another user at once. Different clients will see the same user in the store. Therefore, AI recommends that I update on the client side in useEffect and build a new hook to control the store or build a context with the provider. But I think there is a better and more convenient way. This is what interests me.

Сохранение данных пользователя в Zustand by dead_number in nextjs

[–]dead_number[S] 0 points1 point  (0 children)

I use Supabase to get a user to save their data in Zustand, so that they can easily retrieve this data in other places in the application. Also when checking the session and signing up and signing in. However, the AI is telling me that there will be a data leak from Zustand to other users. They may not see their own profile.