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

API Reference

global-rx-state가 export하는 주요 함수와 반환 형태입니다.


createRxState

인자가 하나이면 anonymous tuple mode이고, name을 넘기면 named object mode입니다. named mode는 컴포넌트 내부 호출을 지원합니다.

ts
createRxStateTuple

name이 runtime에 결정되지만 tuple 반환 순서가 필요한 경우 사용합니다. storage option은 named key와 함께 사용할 수 있습니다.

ts
createRxReducer / createRxReducerTuple
ts
storage values

RxStateStorage는 persistence backend와 호환 alias를 포함합니다. sessionstorage와 sessionStorage는 브라우저 sessionStorage를 사용합니다.

ts

auto는 IndexedDB, WebSQL, localStorage 순서로 가능한 localForage driver를 선택합니다. 조회 API의 resolved storage에는 auto가 아니라 실제 선택된 backend가 반환됩니다.

Storage utilities

Named state와 reducer의 storage는 각각 세 가지 유틸리티로 확인할 수 있습니다.

ts

hasRxState는 지정한 storage 설정에 값이 있는지 확인합니다. findRxStateStorages는 값이 확인된 실제 backend를 중복 없이 반환하고, getRxStateStorageInfo는 확인된 저장 위치를 항상 배열로 반환합니다.

ts

storageKey는 실제 item key이고 fullKey는 flat key를 노출하는 backend에서 확인할 수 있는 전체 key입니다. 같은 name이 여러 storage 설정에 있으면 getRxStateStorageInfo 결과에도 여러 항목이 반환됩니다.

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