Best Way To Handle Auto Selection Of New Row In Table

I have a table populated by a search query. One of the fields is "status" which is open, closed, or null. There is a segmented control bar that sorts the data based on selection. The options are open, closed, or all.

I have a query that creates a new entry by writing the claim_id key to the tables that use it, leaving the rest of the fields null. Once the new row is added, I would like to automatically select it. What is the best way of doing this?

My initial though process was to set the value of the segmented control to "All" (since the new row will only show up there), get a list of all the claim_ids, find out what row the new claim_id is in, then select that nth row. The problem I ran into is that after I set the sort to All, the list of claim_ids is not complete as the table is not finished loading when it pulls them. I tried running the search query in a promise but the search query is ending and the table is still loading. Is there any way to wait for the table to finish loading before getting the claim_ids?