Hi Shawn, so my row limits are different based on which site I am scraping. Could be 15, could be 50, could be 500. That’s why I randomize something only out of the first 15, so the user can see what it chose (if it picked row 300, some sites would not return that much and the user would not see the row it chose as it’d be on the 3rd or 4th page of the table). But that is not the issue and does not solve the problem of the ag grid component constantly reloading due to randomization of row_idx.
I’ll have to take a video of this and post more of my code so others can better understand what is going on. Essentially streamlit will go into a constant RUNNING loop and table will keep reloading with row_idx changing (I expect it to only do it once but it does not). I tried different ways of generating a random # and it is the same behavior.
EDIT: Nevermind, got it working, assigned random.randint(0,14) to a session state variable and update it on the button press callback.