# Pass custom React "key" prop to Flex Repeater children

**URL:** <https://forum.inductiveautomation.com/t/pass-custom-react-key-prop-to-flex-repeater-children/79657>\
**Category:** Ignition\
**Tags:** ignition81, perspective\
**Created:** [September 26, 2023, 3:32pm UTC](https://forum.inductiveautomation.com/t/pass-custom-react-key-prop-to-flex-repeater-children/79657 "2023-09-26T15:32:56Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Nathan\_Merrill](https://avatars.discourse-cdn.com/v4/letter/n/258eb7/32.png) [@Nathan\_Merrill](https://forum.inductiveautomation.com/u/Nathan_Merrill)\
**Post date:** [September 26, 2023, 3:32pm UTC](https://forum.inductiveautomation.com/t/pass-custom-react-key-prop-to-flex-repeater-children/79657/1 "2023-09-26T15:32:56Z")

</div>

For context, I'm building almost exactly what was described in [this post](https://forum.inductiveautomation.com/t/flex-repeater-not-refreshing-when-instances-list-changes/54508) and am running into the same problem. When deleting items from "instances" in a Flex Repeater, I get stale styling from the deleted items on the item below the one that was deleted. I think this is because Ignition uses the array index for the React "key" prop under the hood, and so React doesn't know how to match up the deleted data with the UI.

I think this may also have caused the problem described [here.](https://forum.inductiveautomation.com/t/bug-8-1-7-perspective-using-flex-repeater-with-dynamic-display-of-items-is-very-dodgy/48716)

React docs reference: [https://legacy.reactjs.org/docs/lists-and-keys.html#keys](https://legacy.reactjs.org/docs/lists-and-keys.html#keys)

Is it possible to pass in a custom value for the React "key" prop for Flex Repeater child views from Perspective? Or is there another way to get around this issue?
