Redux

    Redux 와 RTK(Redux toolkit)

    ✨ Redux란..? redux란 JavaScript 상태관리 라이브러리이다. 🌎 Redux의 기본 개념 Single source of truth 애플리케이션의 모든 상태는 하나의 저장소(Store) 안에 하나의 객체 트리 구조로 저장됩니다. State is read-only (state는 읽기 전용이다.) 상태를 변화시키는 유일한 방법은 무슨 일이 벌어지는 지를 묘사하는 action 객체를 전달하는 방법뿐입니다. 리액트에서는 setState 메소드를 이용해야 상태 변경이 가능한데 redux에서도 action이라는 객체를 통해서만 상태를 변경할 수 있다. Change are made with pure functions (변화는 순수 함수로 작성되어야한다.) 변경은 순수함수로만 가능하다. 이전 상태를 변경..

    redux error - A non-serializable value was detected in an action, in the path 해결 방법

    참고 링크 Getting an error "A non-serializable value was detected in the state" when using redux toolkit - but NOT with normal redux I am trying to switch an app I am building over to use Redux Toolkit, and have noticed this error coming up as soon as I switched over to configureStore from createStore: A non-serializable value ... stackoverflow.com Redux Toolkit - A non-serializable value was detect..