@classic-homes/theme-svelte 0.1.28 → 0.1.30
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.
|
@@ -315,6 +315,10 @@ export function createDataTable(options) {
|
|
|
315
315
|
try {
|
|
316
316
|
const resolvedOpts = buildResolvedOptions(opts);
|
|
317
317
|
table.setOptions(resolvedOpts);
|
|
318
|
+
// Increment version to trigger re-renders when external data/options change
|
|
319
|
+
// This is crucial for server-side pagination where data changes without
|
|
320
|
+
// going through TanStack's internal callbacks
|
|
321
|
+
reactiveState.version++;
|
|
318
322
|
}
|
|
319
323
|
catch (error) {
|
|
320
324
|
console.error('[createDataTable] Error updating table options:', error);
|