When closing the modal dialog, the state will lose

Does anyone encounter the same problem before? As you can see in the screen record, when try to close the dialog modal, with the page reload, the state will lose since then. Is it the problem of headless UI dialog or the React Algolia? I have a hard time wrapping my head around this question. Many thanks!