tech.tianyaschool.comReact Query Efficient API Request and Cache ManagementReact Query is a powerful state management library designed for handling data fetching, caching, and updating, particularly suited for API interactions. It offers advanced features such as automatic caching, offline state management, data expiration,...Feb 2·5 min read
tech.tianyaschool.comTypeScript Advanced Type Techniques Generics, Union, and Intersection TypesGenerics In TypeScript, generics are a powerful tool that allow us to write reusable components capable of adapting to multiple types. 1. Generic Constraints Generics can be constrained to a specific type or interface, ensuring that the types passed ...Feb 2·6 min read
tech.tianyaschool.comNext.js API Routes Building Server-Side FunctionalityNext.js API Routes enable the creation of standalone server-side functionality within a Next.js application, capable of handling HTTP requests and returning JSON data or other responses. API routes reside in the pages/api directory, with each file ma...Feb 2·5 min read
tech.tianyaschool.comWeb Components and Framework Integration Vue & React Case StudyFor a long time, I dreamed of building a fully customizable, reusable, and cross-framework UI component library to streamline my project development. By chance, I discovered Web Components, a native Web API that allows the creation of custom HTML tag...Jan 28·3 min read
tech.tianyaschool.comFrontend Error Monitoring and Log Collection PracticesFrontend error monitoring and log collection are critical for ensuring application stability and enhancing user experience. This document explores commonly used methods for frontend error monitoring and log collection. Using try-catch for Error Handl...Jan 28·3 min read