sub-query via query trace

This commit is contained in:
2023-05-24 17:17:17 +01:00
parent 8f7a9a1327
commit 7b151e1b17
7 changed files with 151 additions and 104 deletions

View File

@ -4,6 +4,6 @@ import { System, SystemSnapshot } from "System";
export default function useSystemState() {
return useSyncExternalStore<SystemSnapshot>(
cb => System.hook(cb),
() => System.getSnapshot()
() => System.snapshot()
);
}