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

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

RawResource.getSnapshot property

Synchronous read of the current snapshot, suitable for useSyncExternalStore. The returned object reference changes on every transition.

Signature:

getSnapshot: () => ResourceSnapshot<T>;