Preserve row selection on page reload & restore in multipage app?

Unfortunately, the suggested solution does not work if the dataframe contains random values. I have opened a new thread to discuss this issue, which you can find here: