Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Update lastURLRef within the useEffect as a safeguard
  • Loading branch information
jeryj committed Oct 20, 2025
commit ce74a666aaac3d9649e35c313696dd870528b4fc
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,7 @@ export function Controls( { attributes, setAttributes, clientId } ) {
// Sync local state when url prop changes (e.g., from undo/redo or external updates)
useEffect( () => {
setInputValue( url );
lastURLRef.current = url;
}, [ url ] );

// Use the entity binding hook internally
Expand Down
Loading