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

feat(codemod): getTableData => useTableData for util #161

Merged
merged 1 commit into from
Oct 8, 2023

Conversation

dengfuping
Copy link
Collaborator

@dengfuping dengfuping commented Oct 7, 2023

  • Ref: @oceanbase/codemod Development Plan #60
  • import utils and hooks from @alipay/ob-util to @oceanbase/util. Additionally, it will rename getTableData to useTableData to follow hooks naming conventions.
  import React from 'react';
- import { isNullValue, sortByNumber, getTableData } from '@alipay/ob-util';
+ import { isNullValue, sortByNumber, useTableData } from '@oceanbase/util';

  const Demo = () => {
-    const { tableProps } = getTableData(fn, {});
+    const { tableProps } = useTableData(fn, {});
     return <div />;
  };

  export default Demo;

@dengfuping dengfuping added this to the 1.0.0 Release milestone Oct 7, 2023
@github-actions
Copy link

github-actions bot commented Oct 7, 2023

@dengfuping dengfuping merged commit b29d7b2 into master Oct 8, 2023
5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant