Skip to content

armgit / fider

Public Imported from GitHub
0

Open platform to collect and prioritize feedback

Better delay on the similar posts

Matt Roberts5488f1542c0b
diff --git a/public/pages/Home/components/SimilarPosts.tsx b/public/pages/Home/components/SimilarPosts.tsx
index 7a1afde66..7c0f39e97 100644
--- a/public/pages/Home/components/SimilarPosts.tsx
+++ b/public/pages/Home/components/SimilarPosts.tsx
@@ -37,7 +37,7 @@ export const SimilarPosts: React.FC<SimilarPostsProps> = (props) => {
useEffect(() => {
window.clearTimeout(timerRef.current)
- timerRef.current = window.setTimeout(loadSimilarPosts, 500)
+ timerRef.current = window.setTimeout(loadSimilarPosts, title.length > 0 ? 1000 : 100)
return () => {
window.clearTimeout(timerRef.current)