Skip to content

Commit

Permalink
Data: Expose 'useSelect' warning to third-party consumers
Browse files Browse the repository at this point in the history
  • Loading branch information
Mamaduka committed Dec 9, 2024
1 parent c20ad9f commit 79f9c95
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/data/src/components/use-select/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -174,7 +174,7 @@ function Store( registry, suspense ) {
listeningStores
);

if ( process.env.NODE_ENV === 'development' ) {
if ( globalThis.SCRIPT_DEBUG ) {
if ( ! didWarnUnstableReference ) {
const secondMapResult = mapSelect( select, registry );
if ( ! isShallowEqual( mapResult, secondMapResult ) ) {
Expand Down

0 comments on commit 79f9c95

Please sign in to comment.