React Hooks & react-refresh(HMR)文档中说明和useUpdateEffect hooks实现不一样问题反馈
Open
- Dominant language
- TypeScript
- Stars
- 15k
- Forks
- 2.8k
- Avg merge
- 15h 7m
- Merged PRs (30d)
- 2
Description
文档地址: https://ahooks.js.org/zh-CN/guide/blog/hmr/#%E5%A6%82%E4%BD%95%E8%A7%A3%E5%86%B3%E8%BF%99%E4%BA%9B%E9%97%AE%E9%A2%98
描述内容中有如下写法:
+ useEffect(() => {
+ isMounted.current = false;
+ }, []);
这三行与useUpdateEffect hooks的具体实现中不一致,请帮忙确认下
Contributor guide
Research direction
Open the HMR documentation at the linked ahooks.js.org page and inspect the useUpdateEffect hook implementation in the repository. Compare the documented useEffect snippet with the implementation, then update the documentation so its explanation matches the actual hook behavior and verify the rendered wording.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- react, typescript
- Domain
- documentation
- Issue type
- Documentation
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100