Dun-sin / Whisper

A fun Application to have a random chat with people safely
https://whisper.favour.dev/
MIT License
378 stars 342 forks source link

feat: Dynamic imports BadWordsNext Chat #598

Closed DevDaniloFerrari closed 8 months ago

DevDaniloFerrari commented 8 months ago

Fixes Issue

My PR closes #593

👨‍💻 Changes proposed(What did you do ?)

I created a function called getBadwords, which imports BadWordsNext and EN only when handleSubmit is triggered. Additionally, I introduced a new component called BadwordHideShow, as it also utilizes badword and needed to be externalized.

✔️ Check List (Check all the applicable boxes)

Note to reviewers

This already enhances performance to some extent. However, I believe we can further modularize the chat section, enabling us to identify more performance optimization opportunities.

📷 Screenshots

image image

vercel[bot] commented 8 months ago

Someone is attempting to deploy a commit to a Personal Account owned by @Dun-sin on Vercel.

@Dun-sin first needs to authorize it.

vercel[bot] commented 8 months ago

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

Name Status Preview Comments Updated (UTC)
whisper ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jan 23, 2024 3:37pm