Do you need jotai-tanstack-query? jotai-tanstack-query addresses a very specific and common use case in web dev.
Why State Management? To understand state management, we need to understand how we got here. How did web development evolve to need state management? Or did we always manage state in our application?
Array of objects? Do not spread that. Spread operator is widely used to create a new array without mutating the original array. Below is an example. const numbers = [1,2,3]; const numbersCopy = [...numbers]; console.log(numbers) //[1,2,3] console.log(numbersCopy) //[1,2,3] console.log(numbers === numbersCopy) //false numbersCopy[0] = 999; console.log(numbers)
Abort Controller - Cancel your API calls. One of the most common parts of frontend development is fetching things. In the modern SPA/Hybrid culture, most of the times, it's data. How does a fetch call look like? //Fetch request fetch('https://jsonplaceholder.typicode.com/posts') .then(res => res.json()) .then(json