Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

修复useStorage特殊情况下的错误,重构useZen和zenk组件 #46

Merged
merged 6 commits into from
Mar 4, 2025

Conversation

Autumnal-Joy
Copy link
Collaborator

refactor:

  1. 新增useAllProgress hook来管理全部题目的进度,const [allProgress, setAllProgress, updateOneProgress, deleteOneProgress] = useAllProgress
  2. 解耦useZen,仅用来获取zenk.json数据,题目进度通过useAllProgress来获取。

fix:

  1. 修复useStorage改变key等一些特殊情况的错误 useLocalStorage does not update value when key change streamich/react-use#1147 ,在 react-use 的 useLocalStorage 基础上解决了这个问题。
  2. 一些严格模式下的类型错误。

optim:

  1. 优化导航栏题单样式。
    image

@huxulm huxulm merged commit fa2d4c2 into huxulm:main Mar 4, 2025
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.

2 participants