# Auto refresh in apps

**URL:** <https://community.dynatrace.com/t/auto-refresh-in-apps/42375>\
**Category:** Developer Q&A Forum\
**Tags:** dynatrace-app-toolkit, coding-assistance, app-functions\
**Created:** [October 31, 2023, 9:42am UTC](https://community.dynatrace.com/t/auto-refresh-in-apps/42375 "2023-10-31T09:42:28Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![henk\_stobbe](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/henk_stobbe/32/30434_2.png) [@henk\_stobbe](https://community.dynatrace.com/u/henk_stobbe)\
**Post date:** [October 31, 2023, 9:42am UTC](https://community.dynatrace.com/t/auto-refresh-in-apps/42375/1 "2023-10-31T09:42:28Z")

</div>

Hello,

Can anyone explain in simple terms how to create a self refreshing dashboard? Or are the mechanics simple and you have to pull the data continuesly from within the app?

In other words: is it a pull or can we also use a push?

KR Henk

---

<div class="post-metadata">

**Author:** ![stefan\_eggersto](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/stefan_eggersto/32/34114_2.png) [@stefan\_eggersto](https://community.dynatrace.com/u/stefan_eggersto)\
**Post date:** [November 1, 2023, 5:38am UTC](https://community.dynatrace.com/t/auto-refresh-in-apps/42375/2 "2023-11-01T05:38:25Z")

</div>

Hi&nbsp;[@henk\_stobbe](https://community.dynatrace.com/user/11427)&nbsp;,

You basically have to pull data from within the app continuously.

If you want to implement such a self-refreshing dashboard, I suggest using [TanStack Query](https://tanstack.com/query/latest/)&nbsp;(formerly known as React Query). Its&nbsp;`refetchInterval` property simplifies such a use case. You can find more about this feature here:

- [https://tanstack.com/query/latest/docs/react/examples/react/auto-refetching](https://tanstack.com/query/latest/docs/react/examples/react/auto-refetching)
- [Automatically refetching with React Query - DEV Community](https://dev.to/dailydevtips1/automatically-refetching-with-react-query-1l0f)
