Making TanStack Query feel more like the Cloud Firestore client-side SDK
Giljam, Daniel (2023)
Giljam, Daniel
2023
All rights reserved. This publication is copyrighted. You may download, display and print it for Your own personal use. Commercial use is prohibited.
Julkaisun pysyvä osoite on
https://urn.fi/URN:NBN:fi:amk-2023052815002
https://urn.fi/URN:NBN:fi:amk-2023052815002
Tiivistelmä
The goal of this thesis is to come up with a solution which can take care of query cache updating in a generic and robust way in web applications which use TanStack Query. Query cache is an abstraction in TanStack Query, which is a JavaScript library for handling asynchronous read and write operations and representing their state in a user interface. After examining various open-source technologies, it is the conclusion of this thesis that Orbit.js is the solution to the problem. Orbit.js is a composable data framework for ambitious web applications. An accompanying result of this thesis is the publicly available GitHub project, https://github.com/DanielGiljam/tanstack-query-with-orbitjs, which contains a library for using TanStack Query together with Orbit.js as well as two example applications, one which demonstrates the problems with query cache updating when using TanStack Query and another one which demonstrates the solution of using TanStack Query together with Orbit.js with the help of the library for integrating the two. A web page edition of the thesis is also available at https://danielgiljam.com/degree-thesis. It provides the best reading experience for this thesis.