@beeblock/svelar-datatable 0.1.5 → 0.1.6

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@beeblock/svelar-datatable",
3
- "version": "0.1.5",
3
+ "version": "0.1.6",
4
4
  "description": "Full-featured DataTable plugin for Svelar — sorting, searching, pagination, inline editing, export, and server-side processing",
5
5
  "type": "module",
6
6
  "keywords": [
@@ -149,6 +149,10 @@
149
149
  if (row) await onEdit(row, formData);
150
150
  }
151
151
  store.closeEditor();
152
+ // Auto-refetch for server-side stores after successful edit/create
153
+ if ('initialFetch' in store) {
154
+ await (store as any).initialFetch();
155
+ }
152
156
  } catch (err: any) {
153
157
  if (err.errors) {
154
158
  store.setValidationErrors(err.errors);