Skip to content

Commit

Permalink
Interactivity API: Fix computeds without scope in Firefox (#64825)
Browse files Browse the repository at this point in the history
* Replace NO_SCOPE symbol with an object

* Update changelog

Co-authored-by: DAreRodz <[email protected]>
Co-authored-by: luisherranz <[email protected]>
Co-authored-by: Marc-pi <[email protected]>
  • Loading branch information
4 people authored Aug 27, 2024
1 parent 5751e82 commit d0337f2
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
4 changes: 4 additions & 0 deletions packages/interactivity/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,10 @@

## Unreleased

### Bug Fixes

- Fix computeds without scope in Firefox ([#64825](https://github.com/WordPress/gutenberg/pull/64825)).

## 6.6.0 (2024-08-21)

### Bug Fixes
Expand Down
2 changes: 1 addition & 1 deletion packages/interactivity/src/proxies/signals.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ import { withScope } from '../utils';
/**
* Identifier for property computeds not associated to any scope.
*/
const NO_SCOPE = Symbol();
const NO_SCOPE = {};

/**
* Structure that manages reactivity for a property in a state object. It uses
Expand Down

0 comments on commit d0337f2

Please sign in to comment.