@yogiswara/honcho-editor-ui 2.3.6 → 2.3.8

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.
@@ -80,6 +80,8 @@ export function usePreset(controller, firebaseUid, options = {}) {
80
80
  const loadedPresets = await controllerRef.current.getPresets(firebaseUidRef.current);
81
81
  console.log('✅ 3. STATE UPDATE: setPresets is being called with:', loadedPresets);
82
82
  setPresets(loadedPresets);
83
+ console.log('✅ 4. STATE UPDATE: setIsInitialized is being called with:', true);
84
+ console.log('presets thats called:', presets);
83
85
  setIsInitialized(true);
84
86
  debugLog('Presets loaded successfully', { count: loadedPresets.length });
85
87
  }
@@ -297,6 +299,10 @@ export function usePreset(controller, firebaseUid, options = {}) {
297
299
  load();
298
300
  }
299
301
  }, [memoizedOptions.autoLoad, controller, firebaseUid, isInitialized, load, debugLog]);
302
+ useEffect(() => {
303
+ // This will run every time the 'presets' state actually changes.
304
+ console.log("✅ NEW RENDER: The 'presets' state has been updated to:", presets);
305
+ }, [presets]);
300
306
  // Clear state when controller or firebaseUid changes
301
307
  useEffect(() => {
302
308
  if (isInitialized) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@yogiswara/honcho-editor-ui",
3
- "version": "2.3.6",
3
+ "version": "2.3.8",
4
4
  "description": "A complete UI component library for the Honcho photo editor.",
5
5
  "main": "./dist/index.js",
6
6
  "module": "./dist/index.mjs",