Skip to content

Commit

Permalink
e2e: properly count re-renders in typing test
Browse files Browse the repository at this point in the history
  • Loading branch information
kirillzyusko committed Jul 11, 2024
1 parent 28e5e45 commit ae5e3ae
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 ae5e3ae

Please sign in to comment.