当前位置:网站首页>[pit avoidance means "difficult"] actionref current. Reload() does not take effect
[pit avoidance means "difficult"] actionref current. Reload() does not take effect
2022-06-25 13:16:00 【Coconut brine Engineer】
actionRef:Table action References to , Easy to customize triggerMutableRefObject<ActionType>
When will it be used ?
ActionRef Manual trigger : Sometimes we have to trigger it manually table Of reload Wait for the operation , have access to actionRef.
interface ActionType {
reload: (resetPageIndex?: boolean) => void;
reloadAndRest: () => void;
reset: () => void;
clearSelected?: () => void;
startEditable: (rowKey: Key) => boolean;
cancelEditable: (rowKey: Key) => boolean;
}
const ref = useRef<ActionType>();
<ProTable actionRef={
ref} />;
- ref.current.reload(): Refresh
- ref.current.reloadAndRest(): Refresh and empty , The page number will also be reset , Do not include forms
- ref.current.reset(): Reset to default , Include forms
- ref.current.clearSelected(): Clear selected items
- ref.current.startEditable(rowKey): Start editing
- ref.current.cancelEditable(rowKey): End edit
Problem recurrence
stay useEffect Interface data obtained in , Failed to configure ProTable Of request, As a result, the page cannot be refreshed , The solution is to configure the useEffect Move the playground to ProTable Of request In the middle .
边栏推荐
- Meichuang was selected into the list of "2022 CCIA top 50 Chinese network security competitiveness"
- Sword finger offer II 029 Sorted circular linked list
- [turn] starting from the end, analyze in detail how to fill in the college entrance examination volunteer
- About data storage in memory
- Assemble relevant knowledge points of flag bit (connected)
- Possible problems when idea encounters errors occurred while compiling module (solved)
- Three lines of code to simply modify the project code of the jar package
- Back test of quantitative trading - tqzfuturerenkowavestrategy
- Introduction to string 18 lectures Collection 4
- 坡道带来的困惑
猜你喜欢

WIN10环境下配置pytorch

MySQL adds, modifies, and deletes table fields, field data types, and lengths (with various actual case statements)

剑指 Offer II 028. 展平多级双向链表

mysql导入导出数据到excel表日期出现问题

leetcode - 384. 打乱数组

康威定律,作为架构师还不会灵活运用?
Module 5 (microblog comments)

Meichuang was selected into the list of "2022 CCIA top 50 Chinese network security competitiveness"

golang键盘输入语句scanln scanf代码示例

Possible problems when idea encounters errors occurred while compiling module (solved)
随机推荐
[visio] solving the fuzzy problem of parallelogram in word
词法陷阱(C)
ByteDance dev better technology salon is coming! Participate in the activity to win a good gift, and sign up for free within a limited time!
golang键盘输入语句scanln scanf代码示例
leetcode - 384. 打乱数组
[machine learning] parameter learning and gradient descent
Introduction to string 18 lectures Collection 4
JVM参数解释
C # switch between Chinese and English input methods
剑指 Offer II 029. 排序的循环链表
關於數據在內存中的存儲下
揭秘GaussDB(for Redis):全面对比Codis
Koa frame
Restful and RPC
Jupyter notebook theme font setting and automatic code completion
Some knowledge about structure, enumeration and union
Sword finger offer II 028 Flatten multi-level bidirectional linked list
汇编标志位相关知识点(连)
Of binary tree_ Huffman tree_ Huffman encoding
坡道带来的困惑