tmp: query tracing

This commit is contained in:
2023-04-06 22:37:40 +01:00
parent 69ec48141b
commit dd46586e43
5 changed files with 206 additions and 111 deletions

View File

@ -30,9 +30,9 @@ const useRequestBuilder = <TStore extends NoteStore, TSnapshot = ReturnType<TSto
};
const getState = (): StoreSnapshot<TSnapshot> => {
if (rb?.id) {
const feed = System.GetFeed(rb.id);
if (feed) {
return unwrap(feed).snapshot as StoreSnapshot<TSnapshot>;
const q = System.GetQuery(rb.id);
if (q) {
return unwrap(q).feed?.snapshot as StoreSnapshot<TSnapshot>;
}
}
return EmptySnapshot as StoreSnapshot<TSnapshot>;