My Library Docs

Multi-root Sidebar

flex-layout

  • Getting Started

  • Guides

  • Reference

typed-rx-http

  • Getting Started

  • Guides

  • Reference

global-rx-state

  • Getting Started

  • Guides

  • Reference

webflux-fe-dev-assistant

reactive-mongo-dsl

Reducer Mode

직접 setter를 호출하는 것보다 action으로 상태 변경 규칙을 모으는 편이 나을 때 사용합니다.


Named reducer state

createRxReducer는 state를 직접 바꾸지 않고 action을 dispatch합니다. 장바구니, todo, editor state처럼 변경 규칙이 여러 개인 상태에 적합합니다.

tsx
Runtime key에는 reducer tuple helper 사용

workspace id, project id처럼 runtime key마다 reducer store를 분리해야 한다면 createRxReducerTuple을 사용합니다.

tsx
© 2026 Byeolnaerim. All rights reserved.소개개인정보처리방침