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

Tuple Mode Rules

Anonymous tuple mode is for module-level export, and uses named tuple helper for runtime key.


Anonymous tuple mode is module top-level only.

createRxState(defaultValue)creates a new store every time it is called. Therefore, it should be created once at the module top level and exported for use, not inside functions or components. This mode does not take a storage option and does not use stack trace as a hidden key.

tsx
Use named tuple helper for runtime key.

createRxStateTupleis suitable for cases where the name is not predetermined, such as workspace id received from the server, user-selected tab name, or route parameters. The same runtime key reuses the same store, while different keys use different stores.

tsx
© 2026 Byeolnaerim. All rights reserved.IntroductionPrivacy Policy