We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
在useAsync onSuccess 中调用useAntTable的submit方法不会重新刷新表格。 用例是:使用useAsync新增一条数据后需要刷新表格数据。 https://codesandbox.io/s/hooks-demo-u3l66
The text was updated successfully, but these errors were encountered:
把 submit 放到 useAsync 的 deps 中就可以了。
const { loading, run } = useAsync( () => {}, [submit, hide], { manual: true, onSuccess: () => { submit(); hide(); } } );
或者你可以这样写
run().then(()=>{ submit(); hide(); });
Sorry, something went wrong.
有问题再 open 哦。
这种方法可行
No branches or pull requests
在useAsync onSuccess 中调用useAntTable的submit方法不会重新刷新表格。
用例是:使用useAsync新增一条数据后需要刷新表格数据。
https://codesandbox.io/s/hooks-demo-u3l66
The text was updated successfully, but these errors were encountered: