diff --git a/packages/interactivity/CHANGELOG.md b/packages/interactivity/CHANGELOG.md index b410eb270358f0..b888f159c00867 100644 --- a/packages/interactivity/CHANGELOG.md +++ b/packages/interactivity/CHANGELOG.md @@ -2,6 +2,10 @@ ## Unreleased +### Bug Fixes + +- Prevent calling `proxifyContext` over an already-proxified context inside `wp-context` ([#65090](https://github.com/WordPress/gutenberg/pull/65090)). + ## 6.7.0 (2024-09-05) ### Enhancements diff --git a/packages/interactivity/src/directives.tsx b/packages/interactivity/src/directives.tsx index 715bc2ea7b16b6..b41d50722e3765 100644 --- a/packages/interactivity/src/directives.tsx +++ b/packages/interactivity/src/directives.tsx @@ -290,11 +290,10 @@ export default () => { currentValue.current, deepClone( value ) as object ); - currentValue.current = proxifyContext( + result[ namespace ] = proxifyContext( currentValue.current, inheritedValue[ namespace ] ); - result[ namespace ] = currentValue.current; } return result; }, [ defaultEntry, inheritedValue ] );