-
Notifications
You must be signed in to change notification settings - Fork 2.7k
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
refactor: useUpdateEffect #103
refactor: useUpdateEffect #103
Conversation
luchx
commented
Oct 18, 2019
- remove useUpdateEffect of react-use
- add hook useUpdateEffect
merge umijs/hooks
- remove redundant arguments in useEffect
This pull request is being automatically deployed with ZEIT Now (learn more). 🔍 Inspect: https://zeit.co/umijs/hooks/5elkvjtlo |
@@ -0,0 +1,7 @@ | |||
import useUpdateEffect from '../index'; | |||
|
|||
describe('useSearch', () => { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
- 测试类补充
- 这里名字写错了
src/useUpdateEffect/index.mdx
Outdated
|
||
# useUpdateEffect | ||
|
||
一个作用于组件didMount阶段以后的 useEffect Hook。 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
英文前后空格。
文档这块,后面要重写的。 把这个分支合并到 docs 分支,然后分档需要根据新的规范重写。 |
* feat: add useSelections * refactor: rewrite useSelections and add test * fix: fix test of useSelections * refactor: useUpdateEffect (#103) * feat: add useUpdateEffect * feat: useSelections add setSelected and add test * refactor: return object instead of array * feat: add demo for useSelections * docs: add document for useSelections * fix: fix demo of useSelections * feat: add usePagination * chore: add usePagination reference * fix: Put the function with same deps into one useMeno * feat: useAntdTable add sorter, filters * fix: deps error * fix: change halfSelected -> partiallySelected * fix: useAntdTable determine if filters are equal change to a more robust method * feat: add usePagination (#105) * feat: add usePagination