# How to get the array of dynamic data in custom component?

**URL:** <https://forum.builder.io/t/how-to-get-the-array-of-dynamic-data-in-custom-component/5039>\
**Category:** Visual Editor Help\
**Tags:** visual-editor\
**Created:** [February 26, 2024, 12:54pm UTC](https://forum.builder.io/t/how-to-get-the-array-of-dynamic-data-in-custom-component/5039 "2024-02-26T12:54:22Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![Shami](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.builder.io/shami/32/3188_2.png) [@Shami](https://forum.builder.io/u/Shami)\
**Post date:** [February 26, 2024, 12:54pm UTC](https://forum.builder.io/t/how-to-get-the-array-of-dynamic-data-in-custom-component/5039/1 "2024-02-26T12:54:23Z")

</div>

Hey @manish-sharma , I hope you are having a Good day.

i Actually need some help here i want to get this array state.blogContent.results in my custom component because i actually wanna use infinite scroll and it requires this array

 ![image](https://us1.discourse-cdn.com/flex020/uploads/builder/original/2X/4/44d29767296d79f118a963f429771a069e151dbe.jpeg)

In this image is array state.blogContent.results is actually mapping the content on those blog titles so i want this state so that i could apply infinite scroll to those items.

---

<div class="post-metadata">

**Author:** ![manish-sharma](https://avatars.discourse-cdn.com/v4/letter/m/8797f3/32.png) [@manish-sharma](https://forum.builder.io/u/manish-sharma)\
**Post date:** [February 26, 2024, 12:57pm UTC](https://forum.builder.io/t/how-to-get-the-array-of-dynamic-data-in-custom-component/5039/2 "2024-02-26T12:57:19Z")

</div>

Hello @Shami,

In order for me to be able to help you, could you please provide me with the Builder Content Entry link where you’re experiencing this issue?

Here is how to find it:

 ![](https://us1.discourse-cdn.com/flex020/uploads/builder/original/2X/c/c1dca21328459a8dfbcfe40b6b91648da8ebd7b8.png)

Thanks in advance!

---

<div class="post-metadata">

**Author:** ![Shami](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.builder.io/shami/32/3188_2.png) [@Shami](https://forum.builder.io/u/Shami)\
**Post date:** [February 26, 2024, 1:15pm UTC](https://forum.builder.io/t/how-to-get-the-array-of-dynamic-data-in-custom-component/5039/3 "2024-02-26T13:15:45Z")

</div>

> **[Builder.io: Visual Development Platform](https://builder.io/content/5e43fa3c97c3470196b500e463cf844c)**
>
> Drag and drop with your components, right within your existing site or app. Build and optimize digital experiences for any tech stack, visually..

---

<div class="post-metadata">

**Author:** ![manish-sharma](https://avatars.discourse-cdn.com/v4/letter/m/8797f3/32.png) [@manish-sharma](https://forum.builder.io/u/manish-sharma)\
**Post date:** [February 26, 2024, 1:49pm UTC](https://forum.builder.io/t/how-to-get-the-array-of-dynamic-data-in-custom-component/5039/4 "2024-02-26T13:49:08Z")

</div>

Hello @Shami,

We regret to inform you that we’re currently unable to access the content, making it difficult for us to understand the actual issue. To assist you in connecting an array of dynamic data, we recommend referring to the following Loom video:

Let us know if the above doesn’t help!

Thanks,

---

<div class="post-metadata">

**Author:** ![Shami](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.builder.io/shami/32/3188_2.png) [@Shami](https://forum.builder.io/u/Shami)\
**Post date:** [February 26, 2024, 4:04pm UTC](https://forum.builder.io/t/how-to-get-the-array-of-dynamic-data-in-custom-component/5039/5 "2024-02-26T16:04:38Z")

</div>

Well yeah that did help me but just one more thing that i’m facing this problem also that how can i send the props of the selected blog into the next page i mean i have index page in which i have list of blogs let’s say i click on the John’s Blog so it will take me to /index/blog page where i want the blog which is written by John how can i achieve this. if you know about it that would be so appreciated.

---

<div class="post-metadata">

**Author:** ![manish-sharma](https://avatars.discourse-cdn.com/v4/letter/m/8797f3/32.png) [@manish-sharma](https://forum.builder.io/u/manish-sharma)\
**Post date:** [February 26, 2024, 4:09pm UTC](https://forum.builder.io/t/how-to-get-the-array-of-dynamic-data-in-custom-component/5039/6 "2024-02-26T16:09:29Z")

</div>

Please take a look at our Next.js blog example using the following link:

> **[Create a drag-and-drop editable blog with Next.js](https://www.builder.io/blog/creating-blog)**
>
> Learn how to create a drag-and-drop blog in Builder using the popular JavaScript framework Next.js. From setup to preview, let's get started.

Let us know if that doesn’t help!
