Include content delivery runtime
This commit is contained in:
1 parent
4d0980a389
commit
b5c9bce1aa
9 files changed
+809
-1
No files matched your search
@@ -0,0 +1,13 @@
|
||||
import { useSyncExternalStore } from "react";
|
||||
import {
|
||||
getContentManagerSnapshot,
|
||||
subscribeContentManager,
|
||||
} from "./contentManager";
|
||||
|
||||
export function useContentManagerSnapshot() {
|
||||
return useSyncExternalStore(
|
||||
subscribeContentManager,
|
||||
getContentManagerSnapshot,
|
||||
getContentManagerSnapshot,
|
||||
);
|
||||
}
|
||||
Reference in new issue
Block a user