Authenticated state -- anti-pattern?
Hello, I'm curious what is the "correct" approach to handling authentication, and if my approach would be considered anti-pattern or poorly thought out. My app allows unauthenticated users to use it; however, authenticated users get different views. In order to authenticate my…
List of Best NPM to manage forms and validation using react Apollo with graphql
I have implement basic simple form without using any NPM and i have used Joi npm for form validation but we will need to manage more then 100 different forms in our project. I have check different form npm but didn't find good…
Is react-apollo and its version of react/react-dom causing hooks to error in my…
https://stackoverflow.com/questions/55314006/receiving-error-hooks-can-only-be-called-inside-of-the-body-of-a-function-comp I've surmised the problem in this SO question - basically - hooks are failing and it looks like it's down to numerous copies of react/react-dom - I just…
Apollo client mutation and apollo cache
Hello, On some different blog pages I've readed about updating the apollo cache after a mutation has been done. On different blog pages, I've read that the cache should update itselfs after the mutation (didn't get this work yet), on other blogs I read that we should use the…
Query from cache makes component render twice
Interesting, why is this issue not addressed? Github link: https://github.com/apollographql/react-apollo/issues/1069
React Apollo Query Variable from Context
Hey Apollo Community, I am working on a SPA that uses react-apollo and I wanted to get a second opinion on an architectural decision. All of the queries/mutations in my graphql api take a clientId argument. In my SPA, I have a client picker at a top level of my component…
Plans to fix types for network error
Currently with typescript networkError.statusCode and networkError.result are missing from the definitions. Is there any plans to resolve this issue? https://github.com/apollographql/apollo-link/issues/536
Why would you use `graphql-anywhere`s `filter` in a React app?
The Apollo docs talk about a pattern where you [filter (https://www.apollographql.com/docs/react/advanced/fragments.html) with graphql-anywhere before sending data to child components: Now, I understand that what ultimately happens is that data gets plucked off of the object as…
What's the status on supporting React Hooks?
Hey! I just wonder if the official Apollo team will be realising hooks support. Or if I have to go to the unofficial support which is this, https://github.com/trojanowski/react-apollo-hooks Thanks!