@adventurelabs/scout-core 1.0.114 → 1.0.115

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.
@@ -167,7 +167,7 @@ export function useScoutRefresh(options = {}) {
167
167
  : "No specific changes identified";
168
168
  }, [normalizeHerdModulesForComparison, sortHerdModulesById]);
169
169
  // Helper function to conditionally dispatch only if business data has changed
170
- const conditionalDispatch = useCallback((newData, currentData, actionCreator, dataType, skipTimestampOnlyUpdates = false) => {
170
+ const conditionalDispatch = useCallback((newData, currentData, actionCreator, dataType, skipTimestampOnlyUpdates = true) => {
171
171
  // For herd modules, sort both datasets by ID before comparison
172
172
  let dataToCompare = newData;
173
173
  let currentToCompare = currentData;
@@ -185,7 +185,7 @@ export function useScoutRefresh(options = {}) {
185
185
  console.log(`[useScoutRefresh] ${dataType} business data changed, updating store`);
186
186
  // Add debugging for unexpected business changes
187
187
  if (skipTimestampOnlyUpdates && dataType.includes("Herd modules")) {
188
- const changes = findBusinessDataChanges(newData, currentData);
188
+ const changes = findBusinessDataChanges(dataToCompare, currentToCompare);
189
189
  console.log(`[useScoutRefresh] ${dataType} changes: ${changes}`);
190
190
  }
191
191
  dispatch(actionCreator(newData)); // Always dispatch original unsorted data
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@adventurelabs/scout-core",
3
- "version": "1.0.114",
3
+ "version": "1.0.115",
4
4
  "description": "Core utilities and helpers for Adventure Labs Scout applications",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",