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.
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.