This is the dev preview website. Check out the document at lynxjs.org

Home > @lynx-js/genui > A2UIProps > messageStore

A2UIProps.messageStore property

The raw-message buffer the developer pushes protocol messages into. <A2UI> subscribes via useSyncExternalStore and processes new messages incrementally.

The internal MessageProcessor (surfaces, signals, resources) is created once per mount and is **not reset** if messageStore is later replaced with a different instance. Pass a key prop derived from the store's identity if you want a fresh session, e.g. <A2UI key={turnId} messageStore={turnStore} ... />.

Signature:

messageStore: MessageStore;