EFFICIENT DATA MANAGEMENT IN WEB APPLICATIONS USING THE REACT QUERY LIBRARY

Authors

  • Damjan Banjac Autor

DOI:

https://doi.org/10.24867/26BE03Banjac

Keywords:

React Query, web application, data management, application state

Abstract

This paper introduces the React Query library, focusing on its fundamental principles, practical applications, advantages, and disadvantages. It discusses some of the key aspects of this library, highlighting its capability to efficiently execute HTTP requests for fetching data from the server. Its simple and intuitive syntax makes managing asynchronous operations easier, and built-in support for client-side data caching enables quick access and updates to data without the need for unnecessary server requests.

References

[1] Florin Software Consulting, „Server State vs Client State“, https://www.florinsoftwareconsulting.com/blog/server-vs-client-state (pristupljeno u avgustu 2023.)
[2] Edidiong Etok, „Core Concepts of React Query“, https://blog.devgenius.io/core-concepts-of-react-query-567c91035331 (pristupljeno u avgustu 2023.)
[3] Tanstack Query official documentation, „Mutation“, https://github.com/TanStack/query/blob/main/docs/react/guides/mutations.md (pristupljeno u avgustu 2023.)
[4] Tanstack Query official documentation https://tanstack.com/query/v3/docs/react/guides/ (pristupljeno u avgustu 2023.)
[5] Blitz, „usePaginatedQuery“, https://blitzjs.com/docs/use-paginated-query (pristupljeno u avgustu 2023.)
[8] React Query Firebase, „Prefetching“, https://react-query-firebase.invertase.dev/firestore/prefetching, (pristupljeno u avgustu 2023.)
[9] Tien Nguyen, „React Query vs Redux: A Detailed Comparison for Developers“; https://www.frontendmag.com/insights/react-query-vs-redux-comparison/ (pristupljeno u septembru 2023.)
[10] Tien Nguyen, „React Query vs Apollo Client: Which One Should You Use?“, https://www.frontendmag.com/insights/react-query-vs-apollo-client/ (pristupljeno u septembru 2023.)
[11] HyperText Transfer Protocol https://www3.ntu.edu.sg/home/ehchua/programming/webprogramming/http_basics.html

Published

2024-03-02

Issue

Section

Electrotechnical and Computer Engineering