sub-query via query trace
This commit is contained in:
@ -4,6 +4,6 @@ import { System, SystemSnapshot } from "System";
|
||||
export default function useSystemState() {
|
||||
return useSyncExternalStore<SystemSnapshot>(
|
||||
cb => System.hook(cb),
|
||||
() => System.getSnapshot()
|
||||
() => System.snapshot()
|
||||
);
|
||||
}
|
||||
|
Reference in New Issue
Block a user