fenix icon indicating copy to clipboard operation
fenix copied to clipboard

Create a "ResetAfter" function for StrictMode that checks for debug mode

Open sraturi opened this issue 6 years ago • 0 comments

Problem Currently, there is a StrictMode.resetAfter function in AC. However, the function does not check for debug mode, When this function is called in a production build, it ends up costing us 1-2 milliseconds resetting violation policies each time.

Acceptance Criteria

  • The function reset strict mode policies only in the debug mode. Otherwise, simply runs the passed-in function block.
  • replace all the existing calls to AC's resetAfter function

┆Issue is synchronized with this Jira Task

sraturi avatar Jun 15 '20 22:06 sraturi