pancake-frontend icon indicating copy to clipboard operation
pancake-frontend copied to clipboard

perf: Remove redundant rerender in match breakpoint provider

Open memoyil opened this issue 7 months ago • 2 comments


PR-Codex overview

This PR updates the Provider.tsx file in the MatchBreakpoints context to use optional chaining for addEventListener and removes a redundant setState call.

Detailed summary

  • Updated mql.addEventListener to mql?.addEventListener for optional chaining.
  • Removed redundant setState call.

✨ Ask PR-Codex anything about this PR by commenting with /codex {your question}

memoyil avatar Jul 28 '24 18:07 memoyil