Skip to content

Commit

Permalink
Use Symbol instead of Math.random
Browse files Browse the repository at this point in the history
  • Loading branch information
ellatrix committed Jul 25, 2023
1 parent 3528458 commit 75330ff
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,7 @@ import BlockContext from '../block-context';

const DEFAULT_BLOCK_CONTEXT = {};

// eslint-disable-next-line no-restricted-syntax
export const usesContextKey = 'usesContext' + Math.random();
export const usesContextKey = Symbol( 'usesContext' );

function Edit( { onChange, onFocus, value, forwardedRef, settings } ) {
const {
Expand Down

0 comments on commit 75330ff

Please sign in to comment.