#community-help

Refinements Cleared After Closing Drawer/Dialog

TLDR Maaz reports that refinements get cleared when closing a drawer or dialog, citing a related GitHub issue. Jason suggests it is an issue in react-instantsearch, beyond Typesense's control.

Powered by Struct AI
Mar 24, 2023 (6 months ago)
Maaz
Photo of md5-4df44ac45dd1e34e23a06df85f705fc3
Maaz
10:16 AM
Hey, why does my refinements gets cleared if close a drawer or a dialog?
Jason
Photo of md5-8813087cccc512313602b6d9f9ece19f
Jason
02:46 PM
I haven’t seen this happen in any of our demo apps that use instantsearch.js…

For eg, click on a filter on this page, then click on “Find Similar” under any product and then close the modal, the filter still remains the same
Mar 28, 2023 (6 months ago)
Maaz
Photo of md5-4df44ac45dd1e34e23a06df85f705fc3
Maaz
05:28 AM
https://github.com/algolia/instantsearch/issues/5240 Please look into this issue, we are also facing the same issue. We are using React InstantSearch
05:31
Maaz
05:31 AM
Your demo app in not unmounting the dialog, it is just hiding it using "display:none".
Jason
Photo of md5-8813087cccc512313602b6d9f9ece19f
Jason
12:59 PM
This seems like an issue in react-instanstantsearch. So they have to fix it and we can’t do much on the Typesense side.