@bsol-oss/react-datatable5 1.0.36 → 1.0.37

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/README.md CHANGED
@@ -69,3 +69,10 @@ Example Url generated by the DataTableServer
69
69
  ```
70
70
  GET http://localhost:8333/api/v1/gpt/chat/history/all?pagination={"offset":0,"rows":10}&sorting={}&where={}&searching=hello
71
71
  ```
72
+
73
+ ## Development
74
+
75
+ ```
76
+ npm install
77
+ npm run storybook
78
+ ```
package/dist/index.js CHANGED
@@ -193,7 +193,7 @@ const useDataFromUrl = ({ url, params = {}, defaultData, }) => {
193
193
  getData().catch((e) => {
194
194
  console.error(e);
195
195
  });
196
- }, []);
196
+ }, [url]);
197
197
  return { data, loading, hasError, refreshData };
198
198
  };
199
199
 
package/dist/index.mjs CHANGED
@@ -191,7 +191,7 @@ const useDataFromUrl = ({ url, params = {}, defaultData, }) => {
191
191
  getData().catch((e) => {
192
192
  console.error(e);
193
193
  });
194
- }, []);
194
+ }, [url]);
195
195
  return { data, loading, hasError, refreshData };
196
196
  };
197
197
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bsol-oss/react-datatable5",
3
- "version": "1.0.36",
3
+ "version": "1.0.37",
4
4
  "type": "module",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.mjs",