Skip to content

Commit

Permalink
Update packages/react-native-reanimated/src/mutables.ts
Browse files Browse the repository at this point in the history
Co-authored-by: Tomek Zawadzki <tomasz.zawadzki@swmansion.com>
  • Loading branch information
MatiPl01 and tomekzaw committed Aug 12, 2024
1 parent d71e6d6 commit 0631b34
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/react-native-reanimated/src/mutables.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import { valueSetter } from './valueSetter';
const SHOULD_BE_USE_WEB = shouldBeUseWeb();

function shouldWarnAboutAccessDuringRender() {
return isReactRendering() && !isFirstReactRender();
return __DEV__ && isReactRendering() && !isFirstReactRender();
}

function checkInvalidReadDuringRender() {
Expand Down

0 comments on commit 0631b34

Please sign in to comment.