@yogiswara/honcho-editor-ui 2.3.8 → 2.3.9
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/usePreset.js +1 -5
- package/package.json +1 -1
package/dist/hooks/usePreset.js
CHANGED
|
@@ -299,15 +299,11 @@ export function usePreset(controller, firebaseUid, options = {}) {
|
|
|
299
299
|
load();
|
|
300
300
|
}
|
|
301
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]);
|
|
306
302
|
// Clear state when controller or firebaseUid changes
|
|
307
303
|
useEffect(() => {
|
|
308
304
|
if (isInitialized) {
|
|
309
305
|
debugLog('Controller or firebaseUid changed, clearing state');
|
|
310
|
-
setPresets([]);
|
|
306
|
+
// setPresets([]);
|
|
311
307
|
setError(null);
|
|
312
308
|
setIsInitialized(false);
|
|
313
309
|
}
|