realTime

hi all how I can get real-time updates for the data I use useTable hook to get the data, is there a way to make the update on ui in real-time ? thanks
3 Replies
kapa.ai
kapa.ai2y ago
Hi @Deleted User. I'm kapa.ai, your friendly support bot. I will try to answer your question by searching through the knowledge base. :wave:
kapa.ai
kapa.ai2y ago
---------------------- Yes, you can get real-time updates for the data when using the useTable hook. To enable this feature, you need to use a Live Provider (https://refine.dev/docs/api-reference/core/providers/live-provider/). When the useTable hook is mounted, it will call the subscribe method from the liveProvider with some parameters such as channel, resource, etc. This allows you to subscribe to live updates. Please refer to the liveProvider documentation (https://refine.dev/docs/api-reference/core/providers/live-provider/) for more information on how to set up and use a Live Provider with your application. Source: https://refine.dev/docs/api-reference/antd/hooks/table/useTable (https://refine.dev/docs/api-reference/antd/hooks/table/useTable) ---------------------- Note: you can ask me a follow up question by @ mentioning me again :speech_balloon: ----------------------
useTable | refine
By using useTable, you can get properties that are compatible with Ant Design component. All features such as sorting, filtering, and pagination come out of the box. Under the hood it uses useList for the fetch.
kapa.ai
kapa.ai2y ago
<@1073419683014922323> kapa.ai is still learning and improving, please let us how it did by reacting below