@yogiswara/honcho-editor-ui 3.4.12 → 3.4.13
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/dist/hooks/usePaging.js +2 -1
- package/package.json +1 -1
package/dist/hooks/usePaging.js
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { useState, useCallback, useEffect, useRef, useMemo } from 'react';
|
|
2
|
+
import { log } from '../utils/logger';
|
|
2
3
|
/**
|
|
3
4
|
* Hook for managing paginated image loading with ControllerBulk.
|
|
4
5
|
*
|
|
@@ -67,7 +68,7 @@ export function usePaging(controller, firebaseUid, eventId, options = {}) {
|
|
|
67
68
|
// Helper function to log debug messages
|
|
68
69
|
const debugLog = useCallback((message, data) => {
|
|
69
70
|
if (memoizedOptions.devWarnings) {
|
|
70
|
-
|
|
71
|
+
log.debug({ data }, `[usePaging] ${message}`);
|
|
71
72
|
}
|
|
72
73
|
}, [memoizedOptions.devWarnings]);
|
|
73
74
|
// Helper function to handle errors
|