iamclaytonray
11/10/2017, 11:47 PMproteus
11/11/2017, 12:28 AMproteus
11/11/2017, 12:29 AMproteus
11/11/2017, 12:30 AMproteus
11/11/2017, 12:32 AMwontwon
11/11/2017, 4:17 AMwontwon
11/11/2017, 4:17 AMwontwon
11/11/2017, 4:27 AMwontwon
11/11/2017, 4:55 AMagartha
11/11/2017, 5:07 AMagartha
11/11/2017, 5:08 AMresetStore
does not necessarily remove any data from your store. Instead, it just calls refetch on all active queries, causing the cache to be refreshed.agartha
11/11/2017, 5:08 AMwontwon
11/11/2017, 5:10 AMagartha
11/11/2017, 5:10 AMresetStore
after login instead of logout, because then you at least have authentication, and all of your queries should actually return data. But that does leave the data cached after logout, so you need another method to make sure no data gets exposed.wontwon
11/11/2017, 5:10 AMwontwon
11/11/2017, 5:10 AMwontwon
11/11/2017, 5:11 AMwontwon
11/11/2017, 5:11 AMError: GraphQL error: Cannot query field 'loggedInUser' on type 'Query'.
agartha
11/11/2017, 5:12 AMagartha
11/11/2017, 5:12 AMUser
type, the user
query is still availableagartha
11/11/2017, 5:12 AMloggedInUser
refers toagartha
11/11/2017, 5:14 AMloggedInUser
is part of the email-password
templateagartha
11/11/2017, 5:15 AMuser
is also still availablewontwon
11/11/2017, 5:16 AMwontwon
11/11/2017, 5:17 AMwontwon
11/11/2017, 5:17 AMwontwon
11/11/2017, 5:19 AMwontwon
11/11/2017, 5:21 AMglen
11/11/2017, 8:58 AM