For AI agents: the complete documentation index is available at /next/llms.txt, the full documentation bundle is available at /next/llms-full.txt, and this page is available as Markdown at /next/api/lynx-api/lynx/lynx-subscribe-session-storage.md.
Lynx
  • English
  • lynx: subscribeSessionStorage() static method

    The lynx.subscribeSessionStorage method listens for changes to cached data in the current WhiteBoard, including changes made by other LynxViews that share this WhiteBoard. Use lynx.setSessionStorageItem to set the data.

    See Share Data Across LynxViews for sharing scope, native configuration, and lifecycle management.

    Syntax

    let id = lynx.subscribeSessionStorage(key, (value) => {});

    Parameters

    key

    The key for the cached data, used to retrieve data and listen for changes.

    callback

    The callback function for listening to cached data. The argument is the cached data object.

    Return Value

    id: number, the ID for the data change listener, which can be used to cancel the listener.

    Compatibility

    LCD tables only load in the browser

    Except as otherwise noted, this work is licensed under a Creative Commons Attribution 4.0 International License, and code samples are licensed under the Apache License 2.0.