Lynx

Home > @lynx-js/genui > RawResource > subscribe

RawResource.subscribe property

Subscribe to state changes. The callback is invoked after every complete() or fail() (the same value may be re-published when the processor re-emits an update for the same id). Returns a disposer.

Signature:

subscribe: (callback: () => void) => () => void;
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.