Recently Search onSubmit


I am currently facing an issue where im not sure when or where Algolia saves to local storage on submit (Pressing enter). This is for recently searched, but I need to somehow add onto the recently search item {id: …, label: …, stuffIWantToAdd: …}. I tried adding in some logic to the onSubmit for autocomplete but that did not seem to do anything. However I did add logic to the onSelect to save to localStorage when clicking a result and that seemed to work.

I am doing this work in React.

If anyone has some knowledge they can share for recently searched, it would be greatly appreciated!