RTK Query
-
RTK Query 알아보기 (feat.Redux Toolkit)개발 일지/Front-end 2023. 1. 13. 15:18
https://redux-toolkit.js.org/introduction/getting-started#rtk-query Getting Started | Redux Toolkit redux-toolkit.js.org RTK Query 소개 RTK Query는 @redux/toolkit 패키지내에서 애드온으로 제공됩니다. 데이터 fetching 및 캐싱의 유즈 케이스를 해결하기 위해 개발되었으며 애플리케이션의 API 인터페이스 계층을 정의하기 위해 작지만 강력한 tool set를 제공합니다. 웹 애플리케이션에서 데이터를 로드하는 일반적인 경우를 단순화하여, 데이터 fetching 및 캐싱 로직을 직접 작성할 필요가 없도록 도와줍니다. RTK Query는 Redux Toolkit 코어 위에 구축되며, 내부적..
-
Redux Toolkit 들어가기개발 일지/Front-end 2023. 1. 13. 10:24
2023년 1월부터 시작된 신규 프로젝트를 위해서 NEXT.js 프로젝트에 RTK Query를 사용하기로 결정했습니다. 그러려면 공홈 문서부터 봐야겠죠. https://redux-toolkit.js.org/introduction/getting-started Getting Started | Redux Toolkit redux-toolkit.js.org 열심히 읽어봅니다. 우선, 리덕스 툴킷을 사용하는 목적을 먼저 언급하고 있습니다. 어떤 주제든 먼저 배경에 대해 설명하는게 먼저겠죠. 목적: 자. Redux Toolkit은 Redux 로직을 작성하는 표준 방법입니다. 원래 Redux에 대한 일반적인 세가지 문제를 해결하기 위해 만들어졌습니다. Redux store를 구성하는 것이 너무 복잡하다. Redux를..