Dmytro...you are breathtaking... wonderful...not skipping any steps... all very clear... please do more apollo graphql stuff and error loggings with sentry also as you mentioned...
Thanks for this video. I'm struggling with Apollo Link Error now. Is there a way to show an error notification in the UI except of alert or console.log? I have tried to use useState and useContext from react but got the infinite loop. (Instead of alert to call function to update local store). But it doesn't work. I can't figure out why..
Dmytro, is it possible to show a message in UI (for ex. popup or modal) for all errors using Apollo Link Error? Or I need to make error handling for all the queries and mutations separately?
Hi, Nata! You need to use the global error handler, as shown in the video. Instead of console.log you can show a modal or popup and to achieve this you’ll need to use a global state solution (e.g., redux, mobx, zustand, etc.) Basically, you can show a modal based on the global state. When an error occurs, you can change state instead of calling console.log
Hi, thanks for your great tutorial video. I am new to Apollo client and would like to retry for a configurable number of times if any error happened. I tried reading docs but can’t find a proper way to do that. If I can have your advice? Thanks
Dmytro...you are breathtaking... wonderful...not skipping any steps... all very clear... please do more apollo graphql stuff and error loggings with sentry also as you mentioned...
Thanks for showing the try catch pattern. Appreciate showing the isApolloError util function as well
fantastic video, very clear. Congrats
This is a fantastic tutorial. Thank you soo much!!
Thank you very much, your video was really helpful.
Спасибо. То, что искал)
clean & clear. 👍
thanks a lot)) please continue
Hi. I call graphql mutation inside onError, but return forward (operation) doesn't work. What can be the reason? And how to solve this problem?
Thanks for this video. I'm struggling with Apollo Link Error now. Is there a way to show an error notification in the UI except of alert or console.log? I have tried to use useState and useContext from react but got the infinite loop. (Instead of alert to call function to update local store). But it doesn't work. I can't figure out why..
Dmytro, is it possible to show a message in UI (for ex. popup or modal) for all errors using Apollo Link Error? Or I need to make error handling for all the queries and mutations separately?
Hi, Nata! You need to use the global error handler, as shown in the video. Instead of console.log you can show a modal or popup and to achieve this you’ll need to use a global state solution (e.g., redux, mobx, zustand, etc.) Basically, you can show a modal based on the global state. When an error occurs, you can change state instead of calling console.log
@@DmytroDanylov Thanks. I'm using GraphQl. The solution was Reactive variables from Apollo
Great job!
Hi, thanks for your great tutorial video. I am new to Apollo client and would like to retry for a configurable number of times if any error happened. I tried reading docs but can’t find a proper way to do that. If I can have your advice? Thanks
How to prevent graphql/network error from crashing the client/navigator?
Sir, can i get your repo? please, just to learn
Hi Vĩnh. This is the link to the tutorial's code repo: github.com/d-dmytro/youtube-handling-errors-with-apollo-client