Skip to content

Optimize MainPage filtering and simplify unused imports - #26

Merged
nowscott merged 3 commits into
mainfrom
developer
Mar 17, 2026
Merged

Optimize MainPage filtering and simplify unused imports#26
nowscott merged 3 commits into
mainfrom
developer

Conversation

@nowscott

Copy link
Copy Markdown
Owner

No description provided.

移除 useEffect 中的状态更新循环,改用 useMemo 直接计算 filteredPosts 和 visibleTags。这避免了不必要的渲染,并确保标签过滤与搜索查询的同步更新。
- 删除 MainPage 和 about 页面中未使用的导入
- 简化 ThemeContext 中 toggleTheme 函数的参数
- 移除 Footer 组件中未使用的 loading 状态和相关逻辑
- 清理 HeaderBar 组件中未使用的变量和导入
@vercel

vercel Bot commented Mar 17, 2026

Copy link
Copy Markdown
Contributor

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
indwebindex Ready Ready Preview, Comment Mar 17, 2026 9:19am

@nowscott
nowscott merged commit 7ea6d22 into main Mar 17, 2026
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant