tinybase 8.1.0-beta.2 → 8.1.0-beta.3
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.
- package/@types/ui-svelte/index.d.ts +268 -325
- package/@types/ui-svelte/with-schemas/index.d.ts +265 -322
- package/index.js +1 -1
- package/mergeable-store/index.js +1 -1
- package/mergeable-store/with-schemas/index.js +1 -1
- package/min/index.js +1 -1
- package/min/index.js.gz +0 -0
- package/min/mergeable-store/index.js +1 -1
- package/min/mergeable-store/index.js.gz +0 -0
- package/min/mergeable-store/with-schemas/index.js +1 -1
- package/min/mergeable-store/with-schemas/index.js.gz +0 -0
- package/min/omni/index.js +1 -1
- package/min/omni/index.js.gz +0 -0
- package/min/omni/with-schemas/index.js +1 -1
- package/min/omni/with-schemas/index.js.gz +0 -0
- package/min/persisters/persister-remote/index.js +1 -1
- package/min/persisters/persister-remote/index.js.gz +0 -0
- package/min/persisters/persister-remote/with-schemas/index.js +1 -1
- package/min/persisters/persister-remote/with-schemas/index.js.gz +0 -0
- package/min/queries/index.js +1 -1
- package/min/queries/index.js.gz +0 -0
- package/min/queries/with-schemas/index.js +1 -1
- package/min/queries/with-schemas/index.js.gz +0 -0
- package/min/store/index.js +1 -1
- package/min/store/index.js.gz +0 -0
- package/min/store/with-schemas/index.js +1 -1
- package/min/store/with-schemas/index.js.gz +0 -0
- package/min/ui-react/index.js +1 -1
- package/min/ui-react/index.js.gz +0 -0
- package/min/ui-react/with-schemas/index.js +1 -1
- package/min/ui-react/with-schemas/index.js.gz +0 -0
- package/min/ui-react-dom/index.js +1 -1
- package/min/ui-react-dom/index.js.gz +0 -0
- package/min/ui-react-dom/with-schemas/index.js +1 -1
- package/min/ui-react-dom/with-schemas/index.js.gz +0 -0
- package/min/ui-react-inspector/index.js +1 -1
- package/min/ui-react-inspector/index.js.gz +0 -0
- package/min/ui-react-inspector/with-schemas/index.js +1 -1
- package/min/ui-react-inspector/with-schemas/index.js.gz +0 -0
- package/min/with-schemas/index.js +1 -1
- package/min/with-schemas/index.js.gz +0 -0
- package/omni/index.js +5 -2
- package/omni/with-schemas/index.js +5 -2
- package/package.json +1 -1
- package/persisters/persister-remote/index.js +4 -1
- package/persisters/persister-remote/with-schemas/index.js +4 -1
- package/queries/index.js +1 -1
- package/queries/with-schemas/index.js +1 -1
- package/readme.md +3 -3
- package/releases.md +16 -5
- package/store/index.js +1 -1
- package/store/with-schemas/index.js +1 -1
- package/ui-react/index.js +7 -6
- package/ui-react/with-schemas/index.js +7 -6
- package/ui-react-dom/index.js +7 -6
- package/ui-react-dom/with-schemas/index.js +7 -6
- package/ui-react-inspector/index.js +29 -21
- package/ui-react-inspector/with-schemas/index.js +29 -21
- package/ui-svelte/index.js +1 -1
- package/ui-svelte/with-schemas/index.js +1 -1
- package/with-schemas/index.js +1 -1
|
@@ -8,9 +8,9 @@
|
|
|
8
8
|
* property. Hooks register listeners such that components using those hooks
|
|
9
9
|
* re-render when data changes.
|
|
10
10
|
*
|
|
11
|
-
* Hook parameters accept either plain values or reactive getter functions
|
|
12
|
-
*
|
|
13
|
-
*
|
|
11
|
+
* Hook parameters accept either plain values or reactive getter functions (see
|
|
12
|
+
* the MaybeGetter type), so passing `() => tableId` from a `let`-bound Svelte
|
|
13
|
+
* prop makes the hook re-execute whenever the prop changes.
|
|
14
14
|
*
|
|
15
15
|
* The components in this module provide a further abstraction over those hooks
|
|
16
16
|
* to ease the composition of user interfaces that use TinyBase.
|
|
@@ -104,8 +104,8 @@ import type {Synchronizer} from '../synchronizers/index.d.ts';
|
|
|
104
104
|
export type MaybeGetter<T> = T | (() => T);
|
|
105
105
|
|
|
106
106
|
/**
|
|
107
|
-
* The StoreOrStoreId type is used when you need to refer to a Store in a
|
|
108
|
-
*
|
|
107
|
+
* The StoreOrStoreId type is used when you need to refer to a Store in a Svelte
|
|
108
|
+
* hook or component.
|
|
109
109
|
*
|
|
110
110
|
* In some simple cases you will already have a direct reference to the Store.
|
|
111
111
|
*
|
|
@@ -2365,8 +2365,8 @@ export function useCheckpoints(id?: Id): Checkpoints | undefined;
|
|
|
2365
2365
|
/**
|
|
2366
2366
|
* The useCheckpointsOrCheckpointsById hook is used to get a reference to a
|
|
2367
2367
|
* Checkpoints object from a Provider context, or have it passed directly.
|
|
2368
|
-
* @param checkpointsOrCheckpointsId The Checkpoints object, its Id, or a
|
|
2369
|
-
*
|
|
2368
|
+
* @param checkpointsOrCheckpointsId The Checkpoints object, its Id, or a getter
|
|
2369
|
+
* returning either.
|
|
2370
2370
|
* @returns A getter function returning the Checkpoints object, or `undefined`.
|
|
2371
2371
|
* @category Hook
|
|
2372
2372
|
* @since v8.1.0
|
|
@@ -2543,14 +2543,13 @@ export function useSynchronizerStatus(
|
|
|
2543
2543
|
): {readonly current: Status};
|
|
2544
2544
|
|
|
2545
2545
|
/**
|
|
2546
|
-
* The useHasTablesListener hook registers a listener that is
|
|
2547
|
-
*
|
|
2548
|
-
*
|
|
2549
|
-
*
|
|
2550
|
-
* @param listener The function to call when table presence
|
|
2551
|
-
*
|
|
2552
|
-
*
|
|
2553
|
-
* mutates Store data.
|
|
2546
|
+
* The useHasTablesListener hook registers a listener that is called whenever
|
|
2547
|
+
* any Tables are added to or removed from the Store. The listener is tied to
|
|
2548
|
+
* the component's `$effect` lifecycle and is removed when the component
|
|
2549
|
+
* unmounts.
|
|
2550
|
+
* @param listener The function to call when table presence changes.
|
|
2551
|
+
* @param mutator An optional boolean indicating the listener mutates Store
|
|
2552
|
+
* data.
|
|
2554
2553
|
* @param storeOrStoreId The Store to use, or its Id.
|
|
2555
2554
|
* @category Hook
|
|
2556
2555
|
* @since v8.1.0
|
|
@@ -2562,11 +2561,11 @@ export function useHasTablesListener(
|
|
|
2562
2561
|
): void;
|
|
2563
2562
|
|
|
2564
2563
|
/**
|
|
2565
|
-
* The useTablesListener hook registers a listener that is
|
|
2566
|
-
*
|
|
2564
|
+
* The useTablesListener hook registers a listener that is called whenever
|
|
2565
|
+
* tabular data in the Store changes.
|
|
2567
2566
|
* @param listener The function to call when Tables change.
|
|
2568
|
-
* @param mutator An optional boolean indicating the listener
|
|
2569
|
-
*
|
|
2567
|
+
* @param mutator An optional boolean indicating the listener mutates Store
|
|
2568
|
+
* data.
|
|
2570
2569
|
* @param storeOrStoreId The Store to use, or its Id.
|
|
2571
2570
|
* @category Hook
|
|
2572
2571
|
* @since v8.1.0
|
|
@@ -2578,11 +2577,11 @@ export function useTablesListener(
|
|
|
2578
2577
|
): void;
|
|
2579
2578
|
|
|
2580
2579
|
/**
|
|
2581
|
-
* The useTableIdsListener hook registers a listener that is
|
|
2582
|
-
*
|
|
2580
|
+
* The useTableIdsListener hook registers a listener that is called whenever the
|
|
2581
|
+
* set of Table Ids in the Store changes.
|
|
2583
2582
|
* @param listener The function to call when Table Ids change.
|
|
2584
|
-
* @param mutator An optional boolean indicating the listener
|
|
2585
|
-
*
|
|
2583
|
+
* @param mutator An optional boolean indicating the listener mutates Store
|
|
2584
|
+
* data.
|
|
2586
2585
|
* @param storeOrStoreId The Store to use, or its Id.
|
|
2587
2586
|
* @category Hook
|
|
2588
2587
|
* @since v8.1.0
|
|
@@ -2594,14 +2593,13 @@ export function useTableIdsListener(
|
|
|
2594
2593
|
): void;
|
|
2595
2594
|
|
|
2596
2595
|
/**
|
|
2597
|
-
* The useHasTableListener hook registers a listener that is
|
|
2598
|
-
*
|
|
2599
|
-
*
|
|
2600
|
-
*
|
|
2601
|
-
* to listen to any Table.
|
|
2596
|
+
* The useHasTableListener hook registers a listener that is called whenever a
|
|
2597
|
+
* specified Table is added to or removed from the Store.
|
|
2598
|
+
* @param tableId The Id of the Table to listen to, or `null` to listen to any
|
|
2599
|
+
* Table.
|
|
2602
2600
|
* @param listener The function to call when the Table changes.
|
|
2603
|
-
* @param mutator An optional boolean indicating the listener
|
|
2604
|
-
*
|
|
2601
|
+
* @param mutator An optional boolean indicating the listener mutates Store
|
|
2602
|
+
* data.
|
|
2605
2603
|
* @param storeOrStoreId The Store to use, or its Id.
|
|
2606
2604
|
* @category Hook
|
|
2607
2605
|
* @since v8.1.0
|
|
@@ -2614,13 +2612,13 @@ export function useHasTableListener(
|
|
|
2614
2612
|
): void;
|
|
2615
2613
|
|
|
2616
2614
|
/**
|
|
2617
|
-
* The useTableListener hook registers a listener that is
|
|
2618
|
-
*
|
|
2619
|
-
* @param tableId The Id of the Table to listen to, or `null`
|
|
2620
|
-
*
|
|
2615
|
+
* The useTableListener hook registers a listener that is called whenever data
|
|
2616
|
+
* in a specified Table changes.
|
|
2617
|
+
* @param tableId The Id of the Table to listen to, or `null` to listen to any
|
|
2618
|
+
* Table.
|
|
2621
2619
|
* @param listener The function to call when the Table changes.
|
|
2622
|
-
* @param mutator An optional boolean indicating the listener
|
|
2623
|
-
*
|
|
2620
|
+
* @param mutator An optional boolean indicating the listener mutates Store
|
|
2621
|
+
* data.
|
|
2624
2622
|
* @param storeOrStoreId The Store to use, or its Id.
|
|
2625
2623
|
* @category Hook
|
|
2626
2624
|
* @since v8.1.0
|
|
@@ -2633,13 +2631,13 @@ export function useTableListener(
|
|
|
2633
2631
|
): void;
|
|
2634
2632
|
|
|
2635
2633
|
/**
|
|
2636
|
-
* The useTableCellIdsListener hook registers a listener that
|
|
2637
|
-
*
|
|
2638
|
-
* @param tableId The Id of the Table to listen to, or `null`
|
|
2639
|
-
*
|
|
2634
|
+
* The useTableCellIdsListener hook registers a listener that is called whenever
|
|
2635
|
+
* the Cell Ids used across a Table change.
|
|
2636
|
+
* @param tableId The Id of the Table to listen to, or `null` to listen to any
|
|
2637
|
+
* Table.
|
|
2640
2638
|
* @param listener The function to call when Cell Ids change.
|
|
2641
|
-
* @param mutator An optional boolean indicating the listener
|
|
2642
|
-
*
|
|
2639
|
+
* @param mutator An optional boolean indicating the listener mutates Store
|
|
2640
|
+
* data.
|
|
2643
2641
|
* @param storeOrStoreId The Store to use, or its Id.
|
|
2644
2642
|
* @category Hook
|
|
2645
2643
|
* @since v8.1.0
|
|
@@ -2652,17 +2650,15 @@ export function useTableCellIdsListener(
|
|
|
2652
2650
|
): void;
|
|
2653
2651
|
|
|
2654
2652
|
/**
|
|
2655
|
-
* The useHasTableCellListener hook registers a listener that
|
|
2656
|
-
*
|
|
2657
|
-
*
|
|
2658
|
-
*
|
|
2659
|
-
* to listen to any
|
|
2660
|
-
*
|
|
2661
|
-
*
|
|
2662
|
-
* @param
|
|
2663
|
-
*
|
|
2664
|
-
* @param mutator An optional boolean indicating the listener
|
|
2665
|
-
* mutates Store data.
|
|
2653
|
+
* The useHasTableCellListener hook registers a listener that is called whenever
|
|
2654
|
+
* a specified Cell Id is added to or removed from across a Table.
|
|
2655
|
+
* @param tableId The Id of the Table to listen to, or `null` to listen to any
|
|
2656
|
+
* Table.
|
|
2657
|
+
* @param cellId The Id of the Cell to listen to, or `null` to listen to any
|
|
2658
|
+
* Cell Id.
|
|
2659
|
+
* @param listener The function to call when the Cell Id changes.
|
|
2660
|
+
* @param mutator An optional boolean indicating the listener mutates Store
|
|
2661
|
+
* data.
|
|
2666
2662
|
* @param storeOrStoreId The Store to use, or its Id.
|
|
2667
2663
|
* @category Hook
|
|
2668
2664
|
* @since v8.1.0
|
|
@@ -2676,14 +2672,13 @@ export function useHasTableCellListener(
|
|
|
2676
2672
|
): void;
|
|
2677
2673
|
|
|
2678
2674
|
/**
|
|
2679
|
-
* The useRowCountListener hook registers a listener that is
|
|
2680
|
-
*
|
|
2681
|
-
* @param tableId The Id of the Table to listen to, or `null`
|
|
2682
|
-
*
|
|
2683
|
-
* @param listener The function to call when the Row count
|
|
2684
|
-
*
|
|
2685
|
-
*
|
|
2686
|
-
* mutates Store data.
|
|
2675
|
+
* The useRowCountListener hook registers a listener that is called whenever the
|
|
2676
|
+
* count of Rows in a Table changes.
|
|
2677
|
+
* @param tableId The Id of the Table to listen to, or `null` to listen to any
|
|
2678
|
+
* Table.
|
|
2679
|
+
* @param listener The function to call when the Row count changes.
|
|
2680
|
+
* @param mutator An optional boolean indicating the listener mutates Store
|
|
2681
|
+
* data.
|
|
2687
2682
|
* @param storeOrStoreId The Store to use, or its Id.
|
|
2688
2683
|
* @category Hook
|
|
2689
2684
|
* @since v8.1.0
|
|
@@ -2696,13 +2691,13 @@ export function useRowCountListener(
|
|
|
2696
2691
|
): void;
|
|
2697
2692
|
|
|
2698
2693
|
/**
|
|
2699
|
-
* The useRowIdsListener hook registers a listener that is
|
|
2700
|
-
*
|
|
2701
|
-
* @param tableId The Id of the Table to listen to, or `null`
|
|
2702
|
-
*
|
|
2694
|
+
* The useRowIdsListener hook registers a listener that is called whenever the
|
|
2695
|
+
* Row Ids in a Table change.
|
|
2696
|
+
* @param tableId The Id of the Table to listen to, or `null` to listen to any
|
|
2697
|
+
* Table.
|
|
2703
2698
|
* @param listener The function to call when Row Ids change.
|
|
2704
|
-
* @param mutator An optional boolean indicating the listener
|
|
2705
|
-
*
|
|
2699
|
+
* @param mutator An optional boolean indicating the listener mutates Store
|
|
2700
|
+
* data.
|
|
2706
2701
|
* @param storeOrStoreId The Store to use, or its Id.
|
|
2707
2702
|
* @category Hook
|
|
2708
2703
|
* @since v8.1.0
|
|
@@ -2715,19 +2710,17 @@ export function useRowIdsListener(
|
|
|
2715
2710
|
): void;
|
|
2716
2711
|
|
|
2717
2712
|
/**
|
|
2718
|
-
* The useSortedRowIdsListener hook registers a listener that
|
|
2719
|
-
*
|
|
2713
|
+
* The useSortedRowIdsListener hook registers a listener that is called whenever
|
|
2714
|
+
* the sorted Row Ids in a Table change.
|
|
2720
2715
|
* @param tableId The Id of the Table to listen to.
|
|
2721
|
-
* @param cellId The Id of the Cell to sort by, or `undefined`
|
|
2722
|
-
*
|
|
2716
|
+
* @param cellId The Id of the Cell to sort by, or `undefined` for default
|
|
2717
|
+
* order.
|
|
2723
2718
|
* @param descending Whether to sort descending.
|
|
2724
2719
|
* @param offset The index of the first Row to include.
|
|
2725
|
-
* @param limit The maximum number of Rows to include, or
|
|
2726
|
-
*
|
|
2727
|
-
* @param
|
|
2728
|
-
*
|
|
2729
|
-
* @param mutator An optional boolean indicating the listener
|
|
2730
|
-
* mutates Store data.
|
|
2720
|
+
* @param limit The maximum number of Rows to include, or `undefined` for all.
|
|
2721
|
+
* @param listener The function to call when sorted Row Ids change.
|
|
2722
|
+
* @param mutator An optional boolean indicating the listener mutates Store
|
|
2723
|
+
* data.
|
|
2731
2724
|
* @param storeOrStoreId The Store to use, or its Id.
|
|
2732
2725
|
* @category Hook
|
|
2733
2726
|
* @since v8.1.0
|
|
@@ -2744,16 +2737,14 @@ export function useSortedRowIdsListener(
|
|
|
2744
2737
|
): void;
|
|
2745
2738
|
|
|
2746
2739
|
/**
|
|
2747
|
-
* The useHasRowListener hook registers a listener that is
|
|
2748
|
-
*
|
|
2749
|
-
*
|
|
2750
|
-
*
|
|
2751
|
-
* to listen to any
|
|
2752
|
-
* @param rowId The Id of the Row to listen to, or `null` to
|
|
2753
|
-
* listen to any Row.
|
|
2740
|
+
* The useHasRowListener hook registers a listener that is called whenever a
|
|
2741
|
+
* specified Row is added to or removed from a Table.
|
|
2742
|
+
* @param tableId The Id of the Table to listen to, or `null` to listen to any
|
|
2743
|
+
* Table.
|
|
2744
|
+
* @param rowId The Id of the Row to listen to, or `null` to listen to any Row.
|
|
2754
2745
|
* @param listener The function to call when the Row changes.
|
|
2755
|
-
* @param mutator An optional boolean indicating the listener
|
|
2756
|
-
*
|
|
2746
|
+
* @param mutator An optional boolean indicating the listener mutates Store
|
|
2747
|
+
* data.
|
|
2757
2748
|
* @param storeOrStoreId The Store to use, or its Id.
|
|
2758
2749
|
* @category Hook
|
|
2759
2750
|
* @since v8.1.0
|
|
@@ -2767,15 +2758,14 @@ export function useHasRowListener(
|
|
|
2767
2758
|
): void;
|
|
2768
2759
|
|
|
2769
2760
|
/**
|
|
2770
|
-
* The useRowListener hook registers a listener that is called
|
|
2771
|
-
*
|
|
2772
|
-
* @param tableId The Id of the Table to listen to, or `null`
|
|
2773
|
-
*
|
|
2774
|
-
* @param rowId The Id of the Row to listen to, or `null` to
|
|
2775
|
-
* listen to any Row.
|
|
2761
|
+
* The useRowListener hook registers a listener that is called whenever data in
|
|
2762
|
+
* a specified Row changes.
|
|
2763
|
+
* @param tableId The Id of the Table to listen to, or `null` to listen to any
|
|
2764
|
+
* Table.
|
|
2765
|
+
* @param rowId The Id of the Row to listen to, or `null` to listen to any Row.
|
|
2776
2766
|
* @param listener The function to call when the Row changes.
|
|
2777
|
-
* @param mutator An optional boolean indicating the listener
|
|
2778
|
-
*
|
|
2767
|
+
* @param mutator An optional boolean indicating the listener mutates Store
|
|
2768
|
+
* data.
|
|
2779
2769
|
* @param storeOrStoreId The Store to use, or its Id.
|
|
2780
2770
|
* @category Hook
|
|
2781
2771
|
* @since v8.1.0
|
|
@@ -2789,15 +2779,14 @@ export function useRowListener(
|
|
|
2789
2779
|
): void;
|
|
2790
2780
|
|
|
2791
2781
|
/**
|
|
2792
|
-
* The useCellIdsListener hook registers a listener that is
|
|
2793
|
-
*
|
|
2794
|
-
* @param tableId The Id of the Table to listen to, or `null`
|
|
2795
|
-
*
|
|
2796
|
-
* @param rowId The Id of the Row to listen to, or `null` to
|
|
2797
|
-
* listen to any Row.
|
|
2782
|
+
* The useCellIdsListener hook registers a listener that is called whenever the
|
|
2783
|
+
* Cell Ids in a Row change.
|
|
2784
|
+
* @param tableId The Id of the Table to listen to, or `null` to listen to any
|
|
2785
|
+
* Table.
|
|
2786
|
+
* @param rowId The Id of the Row to listen to, or `null` to listen to any Row.
|
|
2798
2787
|
* @param listener The function to call when Cell Ids change.
|
|
2799
|
-
* @param mutator An optional boolean indicating the listener
|
|
2800
|
-
*
|
|
2788
|
+
* @param mutator An optional boolean indicating the listener mutates Store
|
|
2789
|
+
* data.
|
|
2801
2790
|
* @param storeOrStoreId The Store to use, or its Id.
|
|
2802
2791
|
* @category Hook
|
|
2803
2792
|
* @since v8.1.0
|
|
@@ -2811,18 +2800,16 @@ export function useCellIdsListener(
|
|
|
2811
2800
|
): void;
|
|
2812
2801
|
|
|
2813
2802
|
/**
|
|
2814
|
-
* The useHasCellListener hook registers a listener that is
|
|
2815
|
-
*
|
|
2816
|
-
*
|
|
2817
|
-
*
|
|
2818
|
-
* to listen to any
|
|
2819
|
-
* @param
|
|
2820
|
-
*
|
|
2821
|
-
* @param cellId The Id of the Cell to listen to, or `null` to
|
|
2822
|
-
* listen to any Cell.
|
|
2803
|
+
* The useHasCellListener hook registers a listener that is called whenever a
|
|
2804
|
+
* specified Cell is added to or removed from a Row.
|
|
2805
|
+
* @param tableId The Id of the Table to listen to, or `null` to listen to any
|
|
2806
|
+
* Table.
|
|
2807
|
+
* @param rowId The Id of the Row to listen to, or `null` to listen to any Row.
|
|
2808
|
+
* @param cellId The Id of the Cell to listen to, or `null` to listen to any
|
|
2809
|
+
* Cell.
|
|
2823
2810
|
* @param listener The function to call when the Cell changes.
|
|
2824
|
-
* @param mutator An optional boolean indicating the listener
|
|
2825
|
-
*
|
|
2811
|
+
* @param mutator An optional boolean indicating the listener mutates Store
|
|
2812
|
+
* data.
|
|
2826
2813
|
* @param storeOrStoreId The Store to use, or its Id.
|
|
2827
2814
|
* @category Hook
|
|
2828
2815
|
* @since v8.1.0
|
|
@@ -2837,17 +2824,16 @@ export function useHasCellListener(
|
|
|
2837
2824
|
): void;
|
|
2838
2825
|
|
|
2839
2826
|
/**
|
|
2840
|
-
* The useCellListener hook registers a listener that is called
|
|
2841
|
-
*
|
|
2842
|
-
* @param tableId The Id of the Table to listen to, or `null`
|
|
2843
|
-
*
|
|
2844
|
-
* @param rowId The Id of the Row to listen to, or `null` to
|
|
2845
|
-
* listen to any
|
|
2846
|
-
*
|
|
2847
|
-
* listen to any Cell.
|
|
2827
|
+
* The useCellListener hook registers a listener that is called whenever the
|
|
2828
|
+
* value of a specified Cell changes.
|
|
2829
|
+
* @param tableId The Id of the Table to listen to, or `null` to listen to any
|
|
2830
|
+
* Table.
|
|
2831
|
+
* @param rowId The Id of the Row to listen to, or `null` to listen to any Row.
|
|
2832
|
+
* @param cellId The Id of the Cell to listen to, or `null` to listen to any
|
|
2833
|
+
* Cell.
|
|
2848
2834
|
* @param listener The function to call when the Cell changes.
|
|
2849
|
-
* @param mutator An optional boolean indicating the listener
|
|
2850
|
-
*
|
|
2835
|
+
* @param mutator An optional boolean indicating the listener mutates Store
|
|
2836
|
+
* data.
|
|
2851
2837
|
* @param storeOrStoreId The Store to use, or its Id.
|
|
2852
2838
|
* @category Hook
|
|
2853
2839
|
* @since v8.1.0
|
|
@@ -2862,13 +2848,11 @@ export function useCellListener(
|
|
|
2862
2848
|
): void;
|
|
2863
2849
|
|
|
2864
2850
|
/**
|
|
2865
|
-
* The useHasValuesListener hook registers a listener that is
|
|
2866
|
-
*
|
|
2867
|
-
*
|
|
2868
|
-
* @param
|
|
2869
|
-
*
|
|
2870
|
-
* @param mutator An optional boolean indicating the listener
|
|
2871
|
-
* mutates Store data.
|
|
2851
|
+
* The useHasValuesListener hook registers a listener that is called whenever
|
|
2852
|
+
* any Values are added to or removed from the Store.
|
|
2853
|
+
* @param listener The function to call when value presence changes.
|
|
2854
|
+
* @param mutator An optional boolean indicating the listener mutates Store
|
|
2855
|
+
* data.
|
|
2872
2856
|
* @param storeOrStoreId The Store to use, or its Id.
|
|
2873
2857
|
* @category Hook
|
|
2874
2858
|
* @since v8.1.0
|
|
@@ -2880,11 +2864,11 @@ export function useHasValuesListener(
|
|
|
2880
2864
|
): void;
|
|
2881
2865
|
|
|
2882
2866
|
/**
|
|
2883
|
-
* The useValuesListener hook registers a listener that is
|
|
2884
|
-
*
|
|
2867
|
+
* The useValuesListener hook registers a listener that is called whenever any
|
|
2868
|
+
* Values in the Store change.
|
|
2885
2869
|
* @param listener The function to call when Values change.
|
|
2886
|
-
* @param mutator An optional boolean indicating the listener
|
|
2887
|
-
*
|
|
2870
|
+
* @param mutator An optional boolean indicating the listener mutates Store
|
|
2871
|
+
* data.
|
|
2888
2872
|
* @param storeOrStoreId The Store to use, or its Id.
|
|
2889
2873
|
* @category Hook
|
|
2890
2874
|
* @since v8.1.0
|
|
@@ -2896,11 +2880,11 @@ export function useValuesListener(
|
|
|
2896
2880
|
): void;
|
|
2897
2881
|
|
|
2898
2882
|
/**
|
|
2899
|
-
* The useValueIdsListener hook registers a listener that is
|
|
2900
|
-
*
|
|
2883
|
+
* The useValueIdsListener hook registers a listener that is called whenever the
|
|
2884
|
+
* Value Ids in the Store change.
|
|
2901
2885
|
* @param listener The function to call when Value Ids change.
|
|
2902
|
-
* @param mutator An optional boolean indicating the listener
|
|
2903
|
-
*
|
|
2886
|
+
* @param mutator An optional boolean indicating the listener mutates Store
|
|
2887
|
+
* data.
|
|
2904
2888
|
* @param storeOrStoreId The Store to use, or its Id.
|
|
2905
2889
|
* @category Hook
|
|
2906
2890
|
* @since v8.1.0
|
|
@@ -2912,14 +2896,13 @@ export function useValueIdsListener(
|
|
|
2912
2896
|
): void;
|
|
2913
2897
|
|
|
2914
2898
|
/**
|
|
2915
|
-
* The useHasValueListener hook registers a listener that is
|
|
2916
|
-
*
|
|
2917
|
-
*
|
|
2918
|
-
*
|
|
2919
|
-
* to listen to any Value.
|
|
2899
|
+
* The useHasValueListener hook registers a listener that is called whenever a
|
|
2900
|
+
* specified Value is added to or removed from the Store.
|
|
2901
|
+
* @param valueId The Id of the Value to listen to, or `null` to listen to any
|
|
2902
|
+
* Value.
|
|
2920
2903
|
* @param listener The function to call when the Value changes.
|
|
2921
|
-
* @param mutator An optional boolean indicating the listener
|
|
2922
|
-
*
|
|
2904
|
+
* @param mutator An optional boolean indicating the listener mutates Store
|
|
2905
|
+
* data.
|
|
2923
2906
|
* @param storeOrStoreId The Store to use, or its Id.
|
|
2924
2907
|
* @category Hook
|
|
2925
2908
|
* @since v8.1.0
|
|
@@ -2932,13 +2915,13 @@ export function useHasValueListener(
|
|
|
2932
2915
|
): void;
|
|
2933
2916
|
|
|
2934
2917
|
/**
|
|
2935
|
-
* The useValueListener hook registers a listener that is
|
|
2936
|
-
*
|
|
2937
|
-
* @param valueId The Id of the Value to listen to, or `null`
|
|
2938
|
-
*
|
|
2918
|
+
* The useValueListener hook registers a listener that is called whenever the
|
|
2919
|
+
* value of a specified Value changes.
|
|
2920
|
+
* @param valueId The Id of the Value to listen to, or `null` to listen to any
|
|
2921
|
+
* Value.
|
|
2939
2922
|
* @param listener The function to call when the Value changes.
|
|
2940
|
-
* @param mutator An optional boolean indicating the listener
|
|
2941
|
-
*
|
|
2923
|
+
* @param mutator An optional boolean indicating the listener mutates Store
|
|
2924
|
+
* data.
|
|
2942
2925
|
* @param storeOrStoreId The Store to use, or its Id.
|
|
2943
2926
|
* @category Hook
|
|
2944
2927
|
* @since v8.1.0
|
|
@@ -2951,8 +2934,8 @@ export function useValueListener(
|
|
|
2951
2934
|
): void;
|
|
2952
2935
|
|
|
2953
2936
|
/**
|
|
2954
|
-
* The useStartTransactionListener hook registers a listener
|
|
2955
|
-
*
|
|
2937
|
+
* The useStartTransactionListener hook registers a listener that is called at
|
|
2938
|
+
* the start of every Store transaction.
|
|
2956
2939
|
* @param listener The function to call at transaction start.
|
|
2957
2940
|
* @param storeOrStoreId The Store to use, or its Id.
|
|
2958
2941
|
* @category Hook
|
|
@@ -2964,8 +2947,8 @@ export function useStartTransactionListener(
|
|
|
2964
2947
|
): void;
|
|
2965
2948
|
|
|
2966
2949
|
/**
|
|
2967
|
-
* The useWillFinishTransactionListener hook registers a
|
|
2968
|
-
*
|
|
2950
|
+
* The useWillFinishTransactionListener hook registers a listener called just
|
|
2951
|
+
* before a Store transaction completes.
|
|
2969
2952
|
* @param listener The function to call before transaction end.
|
|
2970
2953
|
* @param storeOrStoreId The Store to use, or its Id.
|
|
2971
2954
|
* @category Hook
|
|
@@ -2977,8 +2960,8 @@ export function useWillFinishTransactionListener(
|
|
|
2977
2960
|
): void;
|
|
2978
2961
|
|
|
2979
2962
|
/**
|
|
2980
|
-
* The useDidFinishTransactionListener hook registers a
|
|
2981
|
-
*
|
|
2963
|
+
* The useDidFinishTransactionListener hook registers a listener called just
|
|
2964
|
+
* after a Store transaction completes.
|
|
2982
2965
|
* @param listener The function to call after transaction end.
|
|
2983
2966
|
* @param storeOrStoreId The Store to use, or its Id.
|
|
2984
2967
|
* @category Hook
|
|
@@ -2990,14 +2973,12 @@ export function useDidFinishTransactionListener(
|
|
|
2990
2973
|
): void;
|
|
2991
2974
|
|
|
2992
2975
|
/**
|
|
2993
|
-
* The useMetricListener hook registers a listener that is
|
|
2994
|
-
*
|
|
2995
|
-
* @param metricId The Id of the Metric to listen to, or
|
|
2996
|
-
*
|
|
2997
|
-
* @param listener The function to call when the Metric
|
|
2998
|
-
*
|
|
2999
|
-
* @param metricsOrMetricsId The Metrics object to use, or
|
|
3000
|
-
* its Id.
|
|
2976
|
+
* The useMetricListener hook registers a listener that is called whenever a
|
|
2977
|
+
* specified Metric value changes.
|
|
2978
|
+
* @param metricId The Id of the Metric to listen to, or `null` to listen to any
|
|
2979
|
+
* Metric.
|
|
2980
|
+
* @param listener The function to call when the Metric changes.
|
|
2981
|
+
* @param metricsOrMetricsId The Metrics object to use, or its Id.
|
|
3001
2982
|
* @category Hook
|
|
3002
2983
|
* @since v8.1.0
|
|
3003
2984
|
*/
|
|
@@ -3008,13 +2989,12 @@ export function useMetricListener(
|
|
|
3008
2989
|
): void;
|
|
3009
2990
|
|
|
3010
2991
|
/**
|
|
3011
|
-
* The useSliceIdsListener hook registers a listener that is
|
|
3012
|
-
*
|
|
3013
|
-
* @param indexId The Id of the Index to listen to, or `null`
|
|
3014
|
-
*
|
|
2992
|
+
* The useSliceIdsListener hook registers a listener that is called whenever the
|
|
2993
|
+
* Slice Ids in an Index change.
|
|
2994
|
+
* @param indexId The Id of the Index to listen to, or `null` to listen to any
|
|
2995
|
+
* Index.
|
|
3015
2996
|
* @param listener The function to call when Slice Ids change.
|
|
3016
|
-
* @param indexesOrIndexesId The Indexes object to use, or its
|
|
3017
|
-
* Id.
|
|
2997
|
+
* @param indexesOrIndexesId The Indexes object to use, or its Id.
|
|
3018
2998
|
* @category Hook
|
|
3019
2999
|
* @since v8.1.0
|
|
3020
3000
|
*/
|
|
@@ -3025,16 +3005,14 @@ export function useSliceIdsListener(
|
|
|
3025
3005
|
): void;
|
|
3026
3006
|
|
|
3027
3007
|
/**
|
|
3028
|
-
* The useSliceRowIdsListener hook registers a listener that
|
|
3029
|
-
*
|
|
3030
|
-
* @param indexId The Id of the Index to listen to, or `null`
|
|
3031
|
-
*
|
|
3032
|
-
* @param sliceId The Id of the Slice to listen to, or `null`
|
|
3033
|
-
*
|
|
3034
|
-
* @param listener The function to call when Slice Row Ids
|
|
3035
|
-
*
|
|
3036
|
-
* @param indexesOrIndexesId The Indexes object to use, or its
|
|
3037
|
-
* Id.
|
|
3008
|
+
* The useSliceRowIdsListener hook registers a listener that is called whenever
|
|
3009
|
+
* the Row Ids in a Slice change.
|
|
3010
|
+
* @param indexId The Id of the Index to listen to, or `null` to listen to any
|
|
3011
|
+
* Index.
|
|
3012
|
+
* @param sliceId The Id of the Slice to listen to, or `null` to listen to any
|
|
3013
|
+
* Slice.
|
|
3014
|
+
* @param listener The function to call when Slice Row Ids change.
|
|
3015
|
+
* @param indexesOrIndexesId The Indexes object to use, or its Id.
|
|
3038
3016
|
* @category Hook
|
|
3039
3017
|
* @since v8.1.0
|
|
3040
3018
|
*/
|
|
@@ -3046,17 +3024,15 @@ export function useSliceRowIdsListener(
|
|
|
3046
3024
|
): void;
|
|
3047
3025
|
|
|
3048
3026
|
/**
|
|
3049
|
-
* The useRemoteRowIdListener hook registers a listener that
|
|
3050
|
-
*
|
|
3051
|
-
*
|
|
3052
|
-
*
|
|
3053
|
-
* to listen to any
|
|
3054
|
-
*
|
|
3055
|
-
*
|
|
3056
|
-
* @param
|
|
3057
|
-
*
|
|
3058
|
-
* @param relationshipsOrRelationshipsId The Relationships
|
|
3059
|
-
* object to use, or its Id.
|
|
3027
|
+
* The useRemoteRowIdListener hook registers a listener that is called whenever
|
|
3028
|
+
* the remote Row Id for a local Row changes.
|
|
3029
|
+
* @param relationshipId The Id of the Relationship, or `null` to listen to any
|
|
3030
|
+
* Relationship.
|
|
3031
|
+
* @param localRowId The Id of the local Row, or `null` to listen to any local
|
|
3032
|
+
* Row.
|
|
3033
|
+
* @param listener The function to call when the remote Row Id changes.
|
|
3034
|
+
* @param relationshipsOrRelationshipsId The Relationships object to use, or its
|
|
3035
|
+
* Id.
|
|
3060
3036
|
* @category Hook
|
|
3061
3037
|
* @since v8.1.0
|
|
3062
3038
|
*/
|
|
@@ -3070,17 +3046,15 @@ export function useRemoteRowIdListener(
|
|
|
3070
3046
|
): void;
|
|
3071
3047
|
|
|
3072
3048
|
/**
|
|
3073
|
-
* The useLocalRowIdsListener hook registers a listener that
|
|
3074
|
-
*
|
|
3075
|
-
*
|
|
3076
|
-
*
|
|
3077
|
-
* to listen to any
|
|
3078
|
-
*
|
|
3079
|
-
*
|
|
3080
|
-
* @param
|
|
3081
|
-
*
|
|
3082
|
-
* @param relationshipsOrRelationshipsId The Relationships
|
|
3083
|
-
* object to use, or its Id.
|
|
3049
|
+
* The useLocalRowIdsListener hook registers a listener that is called whenever
|
|
3050
|
+
* the local Row Ids for a remote Row change.
|
|
3051
|
+
* @param relationshipId The Id of the Relationship, or `null` to listen to any
|
|
3052
|
+
* Relationship.
|
|
3053
|
+
* @param remoteRowId The Id of the remote Row, or `null` to listen to any
|
|
3054
|
+
* remote Row.
|
|
3055
|
+
* @param listener The function to call when local Row Ids change.
|
|
3056
|
+
* @param relationshipsOrRelationshipsId The Relationships object to use, or its
|
|
3057
|
+
* Id.
|
|
3084
3058
|
* @category Hook
|
|
3085
3059
|
* @since v8.1.0
|
|
3086
3060
|
*/
|
|
@@ -3094,15 +3068,13 @@ export function useLocalRowIdsListener(
|
|
|
3094
3068
|
): void;
|
|
3095
3069
|
|
|
3096
3070
|
/**
|
|
3097
|
-
* The useLinkedRowIdsListener hook registers a listener that
|
|
3098
|
-
*
|
|
3099
|
-
* change.
|
|
3071
|
+
* The useLinkedRowIdsListener hook registers a listener that is called whenever
|
|
3072
|
+
* the linked Row Ids for a first Row change.
|
|
3100
3073
|
* @param relationshipId The Id of the Relationship.
|
|
3101
3074
|
* @param firstRowId The Id of the first Row.
|
|
3102
|
-
* @param listener The function to call when linked Row Ids
|
|
3103
|
-
*
|
|
3104
|
-
*
|
|
3105
|
-
* object to use, or its Id.
|
|
3075
|
+
* @param listener The function to call when linked Row Ids change.
|
|
3076
|
+
* @param relationshipsOrRelationshipsId The Relationships object to use, or its
|
|
3077
|
+
* Id.
|
|
3106
3078
|
* @category Hook
|
|
3107
3079
|
* @since v8.1.0
|
|
3108
3080
|
*/
|
|
@@ -3116,14 +3088,12 @@ export function useLinkedRowIdsListener(
|
|
|
3116
3088
|
): void;
|
|
3117
3089
|
|
|
3118
3090
|
/**
|
|
3119
|
-
* The useResultTableListener hook registers a listener that
|
|
3120
|
-
*
|
|
3121
|
-
* @param queryId The Id of the query to listen to, or `null`
|
|
3122
|
-
*
|
|
3123
|
-
* @param listener The function to call when the result Table
|
|
3124
|
-
*
|
|
3125
|
-
* @param queriesOrQueriesId The Queries object to use, or its
|
|
3126
|
-
* Id.
|
|
3091
|
+
* The useResultTableListener hook registers a listener that is called whenever
|
|
3092
|
+
* the result Table of a query changes.
|
|
3093
|
+
* @param queryId The Id of the query to listen to, or `null` to listen to any
|
|
3094
|
+
* query.
|
|
3095
|
+
* @param listener The function to call when the result Table changes.
|
|
3096
|
+
* @param queriesOrQueriesId The Queries object to use, or its Id.
|
|
3127
3097
|
* @category Hook
|
|
3128
3098
|
* @since v8.1.0
|
|
3129
3099
|
*/
|
|
@@ -3134,14 +3104,12 @@ export function useResultTableListener(
|
|
|
3134
3104
|
): void;
|
|
3135
3105
|
|
|
3136
3106
|
/**
|
|
3137
|
-
* The useResultTableCellIdsListener hook registers a listener
|
|
3138
|
-
*
|
|
3139
|
-
*
|
|
3140
|
-
*
|
|
3141
|
-
* to listen to any query.
|
|
3107
|
+
* The useResultTableCellIdsListener hook registers a listener that is called
|
|
3108
|
+
* whenever the Cell Ids across a result Table change.
|
|
3109
|
+
* @param queryId The Id of the query to listen to, or `null` to listen to any
|
|
3110
|
+
* query.
|
|
3142
3111
|
* @param listener The function to call when Cell Ids change.
|
|
3143
|
-
* @param queriesOrQueriesId The Queries object to use, or its
|
|
3144
|
-
* Id.
|
|
3112
|
+
* @param queriesOrQueriesId The Queries object to use, or its Id.
|
|
3145
3113
|
* @category Hook
|
|
3146
3114
|
* @since v8.1.0
|
|
3147
3115
|
*/
|
|
@@ -3152,13 +3120,12 @@ export function useResultTableCellIdsListener(
|
|
|
3152
3120
|
): void;
|
|
3153
3121
|
|
|
3154
3122
|
/**
|
|
3155
|
-
* The useResultRowCountListener hook registers a listener that
|
|
3156
|
-
*
|
|
3157
|
-
* @param queryId The Id of the query to listen to, or `null`
|
|
3158
|
-
*
|
|
3123
|
+
* The useResultRowCountListener hook registers a listener that is called
|
|
3124
|
+
* whenever the count of result Rows changes.
|
|
3125
|
+
* @param queryId The Id of the query to listen to, or `null` to listen to any
|
|
3126
|
+
* query.
|
|
3159
3127
|
* @param listener The function to call when the count changes.
|
|
3160
|
-
* @param queriesOrQueriesId The Queries object to use, or its
|
|
3161
|
-
* Id.
|
|
3128
|
+
* @param queriesOrQueriesId The Queries object to use, or its Id.
|
|
3162
3129
|
* @category Hook
|
|
3163
3130
|
* @since v8.1.0
|
|
3164
3131
|
*/
|
|
@@ -3169,14 +3136,12 @@ export function useResultRowCountListener(
|
|
|
3169
3136
|
): void;
|
|
3170
3137
|
|
|
3171
3138
|
/**
|
|
3172
|
-
* The useResultRowIdsListener hook registers a listener that
|
|
3173
|
-
*
|
|
3174
|
-
* @param queryId The Id of the query to listen to, or `null`
|
|
3175
|
-
*
|
|
3176
|
-
* @param listener The function to call when result Row Ids
|
|
3177
|
-
*
|
|
3178
|
-
* @param queriesOrQueriesId The Queries object to use, or its
|
|
3179
|
-
* Id.
|
|
3139
|
+
* The useResultRowIdsListener hook registers a listener that is called whenever
|
|
3140
|
+
* the result Row Ids of a query change.
|
|
3141
|
+
* @param queryId The Id of the query to listen to, or `null` to listen to any
|
|
3142
|
+
* query.
|
|
3143
|
+
* @param listener The function to call when result Row Ids change.
|
|
3144
|
+
* @param queriesOrQueriesId The Queries object to use, or its Id.
|
|
3180
3145
|
* @category Hook
|
|
3181
3146
|
* @since v8.1.0
|
|
3182
3147
|
*/
|
|
@@ -3187,19 +3152,16 @@ export function useResultRowIdsListener(
|
|
|
3187
3152
|
): void;
|
|
3188
3153
|
|
|
3189
3154
|
/**
|
|
3190
|
-
* The useResultSortedRowIdsListener hook registers a listener
|
|
3191
|
-
*
|
|
3155
|
+
* The useResultSortedRowIdsListener hook registers a listener that is called
|
|
3156
|
+
* whenever the sorted result Row Ids change.
|
|
3192
3157
|
* @param queryId The Id of the query to listen to.
|
|
3193
|
-
* @param cellId The Id of the Cell to sort by, or `undefined`
|
|
3194
|
-
*
|
|
3158
|
+
* @param cellId The Id of the Cell to sort by, or `undefined` for default
|
|
3159
|
+
* order.
|
|
3195
3160
|
* @param descending Whether to sort descending.
|
|
3196
3161
|
* @param offset The index of the first Row to include.
|
|
3197
|
-
* @param limit The maximum number of Rows to include, or
|
|
3198
|
-
*
|
|
3199
|
-
* @param
|
|
3200
|
-
* change.
|
|
3201
|
-
* @param queriesOrQueriesId The Queries object to use, or its
|
|
3202
|
-
* Id.
|
|
3162
|
+
* @param limit The maximum number of Rows to include, or `undefined` for all.
|
|
3163
|
+
* @param listener The function to call when sorted Row Ids change.
|
|
3164
|
+
* @param queriesOrQueriesId The Queries object to use, or its Id.
|
|
3203
3165
|
* @category Hook
|
|
3204
3166
|
* @since v8.1.0
|
|
3205
3167
|
*/
|
|
@@ -3214,16 +3176,14 @@ export function useResultSortedRowIdsListener(
|
|
|
3214
3176
|
): void;
|
|
3215
3177
|
|
|
3216
3178
|
/**
|
|
3217
|
-
* The useResultRowListener hook registers a listener that is
|
|
3218
|
-
*
|
|
3219
|
-
* @param queryId The Id of the query to listen to, or `null`
|
|
3220
|
-
*
|
|
3221
|
-
* @param rowId The Id of the result Row to listen to, or
|
|
3222
|
-
*
|
|
3223
|
-
* @param listener The function to call when the result Row
|
|
3224
|
-
*
|
|
3225
|
-
* @param queriesOrQueriesId The Queries object to use, or its
|
|
3226
|
-
* Id.
|
|
3179
|
+
* The useResultRowListener hook registers a listener that is called whenever a
|
|
3180
|
+
* result Row changes.
|
|
3181
|
+
* @param queryId The Id of the query to listen to, or `null` to listen to any
|
|
3182
|
+
* query.
|
|
3183
|
+
* @param rowId The Id of the result Row to listen to, or `null` to listen to
|
|
3184
|
+
* any result Row.
|
|
3185
|
+
* @param listener The function to call when the result Row changes.
|
|
3186
|
+
* @param queriesOrQueriesId The Queries object to use, or its Id.
|
|
3227
3187
|
* @category Hook
|
|
3228
3188
|
* @since v8.1.0
|
|
3229
3189
|
*/
|
|
@@ -3235,15 +3195,14 @@ export function useResultRowListener(
|
|
|
3235
3195
|
): void;
|
|
3236
3196
|
|
|
3237
3197
|
/**
|
|
3238
|
-
* The useResultCellIdsListener hook registers a listener that
|
|
3239
|
-
*
|
|
3240
|
-
* @param queryId The Id of the query to listen to, or `null`
|
|
3241
|
-
*
|
|
3242
|
-
* @param rowId The Id of the result Row to listen to, or
|
|
3243
|
-
*
|
|
3198
|
+
* The useResultCellIdsListener hook registers a listener that is called
|
|
3199
|
+
* whenever the Cell Ids in a result Row change.
|
|
3200
|
+
* @param queryId The Id of the query to listen to, or `null` to listen to any
|
|
3201
|
+
* query.
|
|
3202
|
+
* @param rowId The Id of the result Row to listen to, or `null` to listen to
|
|
3203
|
+
* any result Row.
|
|
3244
3204
|
* @param listener The function to call when Cell Ids change.
|
|
3245
|
-
* @param queriesOrQueriesId The Queries object to use, or its
|
|
3246
|
-
* Id.
|
|
3205
|
+
* @param queriesOrQueriesId The Queries object to use, or its Id.
|
|
3247
3206
|
* @category Hook
|
|
3248
3207
|
* @since v8.1.0
|
|
3249
3208
|
*/
|
|
@@ -3255,18 +3214,16 @@ export function useResultCellIdsListener(
|
|
|
3255
3214
|
): void;
|
|
3256
3215
|
|
|
3257
3216
|
/**
|
|
3258
|
-
* The useResultCellListener hook registers a listener that is
|
|
3259
|
-
*
|
|
3260
|
-
* @param queryId The Id of the query to listen to, or `null`
|
|
3261
|
-
*
|
|
3262
|
-
* @param rowId The Id of the result Row to listen to, or
|
|
3263
|
-
*
|
|
3264
|
-
* @param cellId The Id of the result Cell to listen to, or
|
|
3265
|
-
*
|
|
3266
|
-
* @param listener The function to call when the result Cell
|
|
3267
|
-
*
|
|
3268
|
-
* @param queriesOrQueriesId The Queries object to use, or its
|
|
3269
|
-
* Id.
|
|
3217
|
+
* The useResultCellListener hook registers a listener that is called whenever
|
|
3218
|
+
* the value of a result Cell changes.
|
|
3219
|
+
* @param queryId The Id of the query to listen to, or `null` to listen to any
|
|
3220
|
+
* query.
|
|
3221
|
+
* @param rowId The Id of the result Row to listen to, or `null` to listen to
|
|
3222
|
+
* any result Row.
|
|
3223
|
+
* @param cellId The Id of the result Cell to listen to, or `null` to listen to
|
|
3224
|
+
* any result Cell.
|
|
3225
|
+
* @param listener The function to call when the result Cell changes.
|
|
3226
|
+
* @param queriesOrQueriesId The Queries object to use, or its Id.
|
|
3270
3227
|
* @category Hook
|
|
3271
3228
|
* @since v8.1.0
|
|
3272
3229
|
*/
|
|
@@ -3279,14 +3236,12 @@ export function useResultCellListener(
|
|
|
3279
3236
|
): void;
|
|
3280
3237
|
|
|
3281
3238
|
/**
|
|
3282
|
-
* The useParamValuesListener hook registers a listener that
|
|
3283
|
-
*
|
|
3284
|
-
* @param queryId The Id of the query to listen to, or `null`
|
|
3285
|
-
*
|
|
3286
|
-
* @param listener The function to call when parameter values
|
|
3287
|
-
*
|
|
3288
|
-
* @param queriesOrQueriesId The Queries object to use, or its
|
|
3289
|
-
* Id.
|
|
3239
|
+
* The useParamValuesListener hook registers a listener that is called whenever
|
|
3240
|
+
* the parameter values for a query change.
|
|
3241
|
+
* @param queryId The Id of the query to listen to, or `null` to listen to any
|
|
3242
|
+
* query.
|
|
3243
|
+
* @param listener The function to call when parameter values change.
|
|
3244
|
+
* @param queriesOrQueriesId The Queries object to use, or its Id.
|
|
3290
3245
|
* @category Hook
|
|
3291
3246
|
* @since v8.1.0
|
|
3292
3247
|
*/
|
|
@@ -3297,17 +3252,14 @@ export function useParamValuesListener(
|
|
|
3297
3252
|
): void;
|
|
3298
3253
|
|
|
3299
3254
|
/**
|
|
3300
|
-
* The useParamValueListener hook registers a listener that is
|
|
3301
|
-
*
|
|
3302
|
-
*
|
|
3303
|
-
*
|
|
3304
|
-
* to listen to
|
|
3305
|
-
*
|
|
3306
|
-
*
|
|
3307
|
-
* @param
|
|
3308
|
-
* value changes.
|
|
3309
|
-
* @param queriesOrQueriesId The Queries object to use, or its
|
|
3310
|
-
* Id.
|
|
3255
|
+
* The useParamValueListener hook registers a listener that is called whenever a
|
|
3256
|
+
* specific parameter value for a query changes.
|
|
3257
|
+
* @param queryId The Id of the query to listen to, or `null` to listen to any
|
|
3258
|
+
* query.
|
|
3259
|
+
* @param paramId The Id of the parameter to listen to, or `null` to listen to
|
|
3260
|
+
* any parameter.
|
|
3261
|
+
* @param listener The function to call when the parameter value changes.
|
|
3262
|
+
* @param queriesOrQueriesId The Queries object to use, or its Id.
|
|
3311
3263
|
* @category Hook
|
|
3312
3264
|
* @since v8.1.0
|
|
3313
3265
|
*/
|
|
@@ -3319,12 +3271,10 @@ export function useParamValueListener(
|
|
|
3319
3271
|
): void;
|
|
3320
3272
|
|
|
3321
3273
|
/**
|
|
3322
|
-
* The useCheckpointIdsListener hook registers a listener that
|
|
3323
|
-
*
|
|
3324
|
-
* @param listener The function to call when Checkpoint Ids
|
|
3325
|
-
*
|
|
3326
|
-
* @param checkpointsOrCheckpointsId The Checkpoints object to
|
|
3327
|
-
* use, or its Id.
|
|
3274
|
+
* The useCheckpointIdsListener hook registers a listener that is called
|
|
3275
|
+
* whenever the Checkpoint Ids change.
|
|
3276
|
+
* @param listener The function to call when Checkpoint Ids change.
|
|
3277
|
+
* @param checkpointsOrCheckpointsId The Checkpoints object to use, or its Id.
|
|
3328
3278
|
* @category Hook
|
|
3329
3279
|
* @since v8.1.0
|
|
3330
3280
|
*/
|
|
@@ -3336,14 +3286,12 @@ export function useCheckpointIdsListener(
|
|
|
3336
3286
|
): void;
|
|
3337
3287
|
|
|
3338
3288
|
/**
|
|
3339
|
-
* The useCheckpointListener hook registers a listener that is
|
|
3340
|
-
*
|
|
3341
|
-
* @param checkpointId The Id of the Checkpoint to listen to,
|
|
3342
|
-
*
|
|
3343
|
-
* @param listener The function to call when the Checkpoint
|
|
3344
|
-
*
|
|
3345
|
-
* @param checkpointsOrCheckpointsId The Checkpoints object to
|
|
3346
|
-
* use, or its Id.
|
|
3289
|
+
* The useCheckpointListener hook registers a listener that is called whenever
|
|
3290
|
+
* the label of a specified Checkpoint changes.
|
|
3291
|
+
* @param checkpointId The Id of the Checkpoint to listen to, or `null` to
|
|
3292
|
+
* listen to any Checkpoint.
|
|
3293
|
+
* @param listener The function to call when the Checkpoint label changes.
|
|
3294
|
+
* @param checkpointsOrCheckpointsId The Checkpoints object to use, or its Id.
|
|
3347
3295
|
* @category Hook
|
|
3348
3296
|
* @since v8.1.0
|
|
3349
3297
|
*/
|
|
@@ -3356,12 +3304,10 @@ export function useCheckpointListener(
|
|
|
3356
3304
|
): void;
|
|
3357
3305
|
|
|
3358
3306
|
/**
|
|
3359
|
-
* The usePersisterStatusListener hook registers a listener
|
|
3360
|
-
*
|
|
3361
|
-
* @param listener The function to call when the status
|
|
3362
|
-
*
|
|
3363
|
-
* @param persisterOrPersisterId The Persister to use, or its
|
|
3364
|
-
* Id.
|
|
3307
|
+
* The usePersisterStatusListener hook registers a listener that is called
|
|
3308
|
+
* whenever the status of a Persister changes.
|
|
3309
|
+
* @param listener The function to call when the status changes.
|
|
3310
|
+
* @param persisterOrPersisterId The Persister to use, or its Id.
|
|
3365
3311
|
* @category Hook
|
|
3366
3312
|
* @since v8.1.0
|
|
3367
3313
|
*/
|
|
@@ -3371,13 +3317,10 @@ export function usePersisterStatusListener(
|
|
|
3371
3317
|
): void;
|
|
3372
3318
|
|
|
3373
3319
|
/**
|
|
3374
|
-
* The useSynchronizerStatusListener hook registers a listener
|
|
3375
|
-
*
|
|
3376
|
-
* changes.
|
|
3377
|
-
* @param
|
|
3378
|
-
* changes.
|
|
3379
|
-
* @param synchronizerOrSynchronizerId The Synchronizer to use,
|
|
3380
|
-
* or its Id.
|
|
3320
|
+
* The useSynchronizerStatusListener hook registers a listener that is called
|
|
3321
|
+
* whenever the status of a Synchronizer changes.
|
|
3322
|
+
* @param listener The function to call when the status changes.
|
|
3323
|
+
* @param synchronizerOrSynchronizerId The Synchronizer to use, or its Id.
|
|
3381
3324
|
* @category Hook
|
|
3382
3325
|
* @since v8.1.0
|
|
3383
3326
|
*/
|