# @React/Ionic Infinite Scroll - Show msg/toast at the end of scrolling

**URL:** <https://forum.ionicframework.com/t/react-ionic-infinite-scroll-show-msg-toast-at-the-end-of-scrolling/217519>\
**Category:** Ionic React\
**Created:** [November 19, 2021, 3:51pm UTC](https://forum.ionicframework.com/t/react-ionic-infinite-scroll-show-msg-toast-at-the-end-of-scrolling/217519 "2021-11-19T15:51:47Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![ZhaniWalid](https://sea1.discourse-cdn.com/ionicframework/user_avatar/forum.ionicframework.com/zhaniwalid/32/138735_2.png) [@ZhaniWalid](https://forum.ionicframework.com/u/ZhaniWalid)\
**Post date:** [November 19, 2021, 3:51pm UTC](https://forum.ionicframework.com/t/react-ionic-infinite-scroll-show-msg-toast-at-the-end-of-scrolling/217519/1 "2021-11-19T15:51:47Z")

</div>

Hello everyone,

How to tell **Ionic/React** to show a _message/toast_ for example, when we are **at the end of the scrollable list**?

Thank you.

---

<div class="post-metadata">

**Author:** ![ZhaniWalid](https://sea1.discourse-cdn.com/ionicframework/user_avatar/forum.ionicframework.com/zhaniwalid/32/138735_2.png) [@ZhaniWalid](https://forum.ionicframework.com/u/ZhaniWalid)\
**Post date:** [November 19, 2021, 6:31pm UTC](https://forum.ionicframework.com/t/react-ionic-infinite-scroll-show-msg-toast-at-the-end-of-scrolling/217519/2 "2021-11-19T18:31:18Z")

</div>

@ldebeasi do you have an idea about my question here ?

Thanks.

---

<div class="post-metadata">

**Author:** ![ldebeasi](https://sea1.discourse-cdn.com/ionicframework/user_avatar/forum.ionicframework.com/ldebeasi/32/147501_2.png) [@ldebeasi](https://forum.ionicframework.com/u/ldebeasi)\
**Post date:** [November 19, 2021, 8:07pm UTC](https://forum.ionicframework.com/t/react-ionic-infinite-scroll-show-msg-toast-at-the-end-of-scrolling/217519/3 "2021-11-19T20:07:26Z")

</div>

Are you trying to show a toast once you have run out of items to display? If so, you should present the toast after you set `disabled="true"` on the infinite scroll component.

In React, the code would look something like this:

```auto
const loadData = (ev: any) => {
    setTimeout(() => {
      pushData();
      console.log('Loaded data');
      ev.target.complete();
      if (data.length == 1000) {
        setInfiniteDisabled(true);

        // Show the toast using an overlay hook
      }
    }, 500);
  }  

```

You can see examples of how to use overlay hooks here: [Using Overlay Components in React - Ionic Documentation](https://ionicframework.com/docs/react/overlays)
