Category pages with react instant search

Hello everyone,

I want to use instantsearch to allow my users to search for products within a specific category. For example, if a user is on the “Electronics” category page, I want them to be able to search for products within that category only. But I cannot achieve that or find examples that are not outdated. I am trying to set
<Configure facetFilters={['categories.lvl2:=['Electronics > Speakers > Portable Speakers']']} />
and it works when the page loads but after clicking any of the Refinement List items it goes missing. Also, I’m using InstantSearchSSRProvider and it would be nice so that it would work on the server side too.

Does anyone have any examples or resources that could help me achieve this as I cannot find a correct way? I would greatly appreciate any guidance or advice you could provide.

Thank you in advance!