I have a script that updates a database, and a Flex Repeater is used to display all instances of that database. The issue is that after the database updates, the repeater instances correctly contain the new data, but visually they continue to display the old information.
I’ve tried several approaches to resolve this:
-
Setting the repeater instances to
nulland then reassigning the correct data -
Introducing a sleep/delay between updates in case there was a race condition
-
Explicitly setting the instances’ data to an empty array (
[])
None of these attempts worked. Even when the data is cleared entirely, the UI still shows the previous values.
Obviously, there must be a proper way to force the repeater to re-render or refresh its visual state. I’m hoping someone has insight or experience with this issue before I resort to something drastic, like deleting and recreating the component on every update.