这是开发预览网站。请访问正式文档 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>;