Spaces:
Runtime error
Runtime error
File size: 304 Bytes
6a839c1 423b87b |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 |
// @ts-nocheck
import { useRoom } from "./useRoom";
/**
* Works similarly to `liveblocks-react` useBatch
* https://liveblocks.io/docs/api-reference/liveblocks-react#useBatch
*
* const batch = useBatch()
* batch(() => {
* // ...
* })
*/
export function useBatch() {
return useRoom().batch;
}
|