@mike91901 OnItemReady may be the more appropriate function to place the hide and show functions in, rather than ForEachItem. That will execute every time the data gets re-assigned to the repeater. That is my best guess from what you wrote.
It would help if you would post your code, so someone can let you know whether or not there is a problem with it.