pancake-frontend
pancake-frontend copied to clipboard
perf: Remove redundant rerender in match breakpoint provider
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
tomql?.addEventListener
for optional chaining. - Removed redundant
setState
call.
✨ Ask PR-Codex anything about this PR by commenting with
/codex {your question}