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

refactor: useUpdateEffect #103

Merged
merged 6 commits into from
Oct 21, 2019

Conversation

luchx
Copy link
Contributor

@luchx luchx commented Oct 18, 2019

  1. remove useUpdateEffect of react-use
  2. add hook useUpdateEffect

@vercel
Copy link

vercel bot commented Oct 18, 2019

This pull request is being automatically deployed with ZEIT Now (learn more).
To see the status of your deployment, click below or on the icon next to each commit.

🔍 Inspect: https://zeit.co/umijs/hooks/5elkvjtlo
🌍 Preview: https://hooks-git-fork-luchx-luchx-refactor-useupdateeffect.umijs.now.sh

@luchx
Copy link
Contributor Author

luchx commented Oct 18, 2019

{F9DD859C-CBCE-4BB6-A686-2FCEF5A23CAA}_20191018232012

@@ -0,0 +1,7 @@
import useUpdateEffect from '../index';

describe('useSearch', () => {
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

  1. 测试类补充
  2. 这里名字写错了


# useUpdateEffect

一个作用于组件didMount阶段以后的 useEffect Hook。
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

英文前后空格。

@brickspert
Copy link
Collaborator

brickspert commented Oct 20, 2019

文档这块,后面要重写的。

把这个分支合并到 docs 分支,然后分档需要根据新的规范重写。

@ttys026 ttys026 merged commit 43b3595 into alibaba:feature Oct 21, 2019
ttys026 pushed a commit that referenced this pull request Oct 24, 2019
* 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
@luchx luchx deleted the luchx/refactor-useUpdateEffect branch October 31, 2019 02:00
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.

4 participants