React - Data fetching
Your application will start to be really interactive when used with a backend. To handle external API requests, you need to implement a data fetching mechanizm into your codebase.
There are several popular tool that can make loading queries and mutating request much easier to mantain. You can also implement your own solution but be aware of multiple edge cases that you need to handle!
REST request
I can call external REST API using inbuild fetch mechanizm or use popular libraries like axiosLibrary
GraphQL request
I can request GraphQL data using tools like ApolloLibrary
Queries handling
I can download and keep query data using libraries like react-queryLibrary, rtk-queryLibrary or own custom implementation
I know how to check the status of fetching and how to use dependency array to retrigger fetching each time the parameters would change
Mutations handling
I know how to trigger and handle API requests that will update data provided by backend. I know how I can retrive fetching status and adapt the displayed screen for loading, success or error page.
I know how to refetch or update existing loaded data from queries that could be affected by mutation calls
I can call external REST API using inbuild fetch mechanizm or use popular libraries like axiosLibrary
I can download and keep query data using libraries like react-queryLibrary, rtk-queryLibrary or own custom implementation
I know how to check the status of fetching and how to use dependency array to retrigger fetching each time the parameters would change
I know how to trigger and handle API requests that will update data provided by backend. I know how I can retrive fetching status and adapt the displayed screen for loading, success or error page.
I know how to refetch or update existing loaded data from queries that could be affected by mutation calls