dydxprotocol / v4-web

Other
74 stars 61 forks source link

fix: memoize compliance string #944

Closed rosepuppy closed 3 weeks ago

rosepuppy commented 3 weeks ago

The complianceMessage was not being memo-ized leading to a non-stop rendering of the compliance notification, which was eating up a lot CPU when website is in user restricted area.

Memoize the complianceMessage to fix this.

vercel[bot] commented 3 weeks ago

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
v4-staging ✅ Ready (Inspect) Visit Preview 💬 Add feedback Aug 22, 2024 5:22am
v4-testnet ✅ Ready (Inspect) Visit Preview 💬 Add feedback Aug 22, 2024 5:22am