@react-fabric/data 1.0.0-beta.45 → 1.0.0-beta.47

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.
@@ -254,7 +254,7 @@ var useTree = function useTree(_ref) {
254
254
  type: "filter",
255
255
  query: query
256
256
  });
257
- }, []);
257
+ }, [], 300);
258
258
  return {
259
259
  tree: state.tree,
260
260
  toggleExpand: toggleExpand,
@@ -254,7 +254,7 @@ var useTree = function useTree(_ref) {
254
254
  type: "filter",
255
255
  query: query
256
256
  });
257
- }, []);
257
+ }, [], 300);
258
258
  return {
259
259
  tree: state.tree,
260
260
  toggleExpand: toggleExpand,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@react-fabric/data",
3
- "version": "1.0.0-beta.45",
3
+ "version": "1.0.0-beta.47",
4
4
  "description": "RUF: Data package",
5
5
  "author": "Adarsh Pastakia <adarshpastakia@outlook.com>",
6
6
  "license": "MIT",
@@ -35,10 +35,10 @@
35
35
  "watch": "npm-run-all -p watch:rollup watch:dts"
36
36
  },
37
37
  "dependencies": {
38
- "@react-fabric/core": "^1.0.0-beta.45",
39
- "@react-fabric/date": "^1.0.0-beta.45",
40
- "@react-fabric/form": "^1.0.0-beta.45",
41
- "@react-fabric/utilities": "^1.0.0-beta.45",
38
+ "@react-fabric/core": "^1.0.0-beta.47",
39
+ "@react-fabric/date": "^1.0.0-beta.47",
40
+ "@react-fabric/form": "^1.0.0-beta.47",
41
+ "@react-fabric/utilities": "^1.0.0-beta.47",
42
42
  "@tanstack/react-virtual": "^3.8.6",
43
43
  "classnames": "^2.5.1",
44
44
  "color": "^4.2.3",
@@ -54,5 +54,5 @@
54
54
  "node": ">=18.12.0",
55
55
  "npm": ">=8.19.0"
56
56
  },
57
- "gitHead": "37d7cbcd99da40553f4ac775c3332d5281565936"
57
+ "gitHead": "832a1bce055337127ba17c505731f419248cc15e"
58
58
  }
@@ -294,9 +294,13 @@ export const useTree = <T extends KeyValue>({
294
294
  dispatch({ type: "collapseAll" });
295
295
  }, []);
296
296
 
297
- const onFilter = useDebounce((query: string) => {
298
- dispatch({ type: "filter", query });
299
- }, []);
297
+ const onFilter = useDebounce(
298
+ (query: string) => {
299
+ dispatch({ type: "filter", query });
300
+ },
301
+ [],
302
+ 300,
303
+ );
300
304
 
301
305
  return {
302
306
  tree: state.tree,