Skip to main content

Command Palette

Search for a command to run...

[ 살펴보기 ] - Zustand

Series

[ 살펴보기 ] - Zustand

Global State Management library Zustand에 대해 살펴보자

  1. [ 살펴보기 ] Zustand - NextJS에서 사용하기

    Official Documentation에 따르면 Zustand를 NextJS와 함께 사용할 때 여러 request에 store가 공유되는 것을 방지하지 위해 React Context를 통해 store를 전달하고 사용하는 방식을 소개하고 있다. 따라서 NextJS에서 Zustand를 사용하고자 한다면 store의 생성과 사용을 위해 다음 과정을 적용하는 것이 추천된다. ( 예제는 NextJS App route 기준으로 적용 ) 우선 store를...

    Aug 23, 20244 min read16
    [ 살펴보기 ] Zustand - NextJS에서 사용하기