시리즈
Zustand scoped store 시리즈
글로벌 store의 한계에서 출발해, createStore() + React Context 패턴으로 scoped store를 구현하고, ~40줄 유틸리티로 추상화하는 과정
3개의 글
- 1.
Zustand scoped store #1. 글로벌 store로는 안 되는 것들 전역상태를 남용하지 말라는 이야기는 많이 들어봤지만, 정작 왜 그런지를 Zustand 맥락에서 구체적으로 짚은 글은 드뭅니다. 글로벌 store의 세 가지 한계에서 출발해 scoped store가 필요한 이유를 정리합니다. March 13, 2026
- 2.
Zustand scoped store #2. React Context로 지역 store 만들기 create()와 createStore()의 차이를 이해하고, React Context와 조합해 컴포넌트 단위로 격리된 store를 직접 구현합니다. March 13, 2026
- 3.
Zustand scoped store #3. 유틸리티, 직접 만들어 쓰기 zustand/context가 사라진 v5에서, GitHub Discussion과 TkDodo 블로그를 참고해 ~40줄의 createZustandContext 유틸리티를 설계한 과정과 각 결정의 이유 March 13, 2026