Skip to main content

RxStateStackUtils

Functions

topOfStack

RxStateStackUtils.topOfStack(defaultValueT | nil) → (sourceObservable<Brio<T>>) → Observable<T?>

Converts the observable of Brios into a statestack.

createStateStack

RxStateStackUtils.createStateStack(observableObservable<Brio<T>>) → StateStack<T>

Creates a state stack from the brio's value. The state stack holds the last value seen that is valid.

Show raw api
{
    "functions": [
        {
            "name": "topOfStack",
            "desc": "Converts the observable of Brios into a statestack.",
            "params": [
                {
                    "name": "defaultValue",
                    "desc": "",
                    "lua_type": "T | nil"
                }
            ],
            "returns": [
                {
                    "desc": "",
                    "lua_type": "(source: Observable<Brio<T>>) -> Observable<T?>"
                }
            ],
            "function_type": "static",
            "source": {
                "line": 20,
                "path": "src/statestack/src/Shared/RxStateStackUtils.lua"
            }
        },
        {
            "name": "createStateStack",
            "desc": "Creates a state stack from the brio's value. The state stack holds the last\nvalue seen that is valid.",
            "params": [
                {
                    "name": "observable",
                    "desc": "",
                    "lua_type": "Observable<Brio<T>>"
                }
            ],
            "returns": [
                {
                    "desc": "",
                    "lua_type": "StateStack<T>"
                }
            ],
            "function_type": "static",
            "source": {
                "line": 57,
                "path": "src/statestack/src/Shared/RxStateStackUtils.lua"
            }
        }
    ],
    "properties": [],
    "types": [],
    "name": "RxStateStackUtils",
    "desc": "",
    "source": {
        "line": 4,
        "path": "src/statestack/src/Shared/RxStateStackUtils.lua"
    }
}