@yorkie-js/react 0.7.11-rc → 0.7.12-rc

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,3 +1,4 @@
1
+ import { Client } from '@yorkie-js/sdk';
1
2
  import { ClientOptions } from '@yorkie-js/sdk';
2
3
  import { Counter } from '@yorkie-js/sdk';
3
4
  import { default as default_2 } from 'react';
@@ -314,6 +315,16 @@ export declare const useRoot: <R>() => {
314
315
  root: R;
315
316
  };
316
317
 
318
+ /**
319
+ * `useYorkie` is a custom hook that returns the Yorkie client and its loading state.
320
+ * @returns
321
+ */
322
+ export declare const useYorkie: () => {
323
+ client: Client | undefined;
324
+ loading: boolean;
325
+ error: Error | undefined;
326
+ };
327
+
317
328
  /**
318
329
  * `useYorkieDoc` is a custom hook that initializes a Yorkie Client and a
319
330
  * document in a single hook.