state reflects the current user's permissions is to call client.resetStore() after your login or logout process has completed. This will cause the store to be cleared and all active queries to be refetched. If you just want the store to be cleared and don't want to refetch active queries, use client.clearStore() instead. Another option is to reload the page, which will have a similar effect.
Мб порядок не тот?
спасибо, тоже находил это сейчас подумываю что с react-apollo-hooks что-то не то, раньше без хуков resetStore помогал
Обсуждают сегодня