Skip to content

Commit

Permalink
Merge pull request #45292 from margelo/e2e/react-compiler-typing-test
Browse files Browse the repository at this point in the history
[NoQA] e2e: properly count re-renders in typing test
  • Loading branch information
techievivek authored Jul 11, 2024
2 parents 109d4aa + 47a13fe commit ac8d47d
Showing 1 changed file with 6 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,12 @@ function IncrementRenderCount() {
}

function ComposerWithSuggestionsE2e(props: ComposerWithSuggestionsProps, ref: ForwardedRef<ComposerRef>) {
'use no memo';

// we rely on waterfall rendering in react, so we intentionally disable compiler
// for this component. This file is only used for e2e tests, so it's okay to
// disable compiler for this file.

// Eventually Auto focus on e2e tests
useEffect(() => {
const testConfig = E2EClient.getCurrentActiveTestConfig();
Expand Down

0 comments on commit ac8d47d

Please sign in to comment.