Description
Is your feature request related to a problem? Please describe.
I'm working on a multi-tenant application where the same resources are used under different basenames for multiple tenants. This causes conflicts with built-in store keys like useUnselect()
, useUnselectAll()
, useRecordSelection()
, and useExpanded()
, as they aren't customizable and lead to unexpected behavior when managing selections and expansions.
Describe the solution you'd like
I would like the ability to customize the built-in store keys for selection and expansion states. Specifically, the ability to set unique store keys per resource instance, perhaps through a storeKey
context, for better isolation across tenants. It would also be helpful to expose other store keys like theme and locale for safer reuse in multi-tenant setups.
I'd be more that happy to work on this if you agree.
Describe alternatives you've considered
I haven't found an alternative yet.
i found this case documented here storekey but i still think we can have a better solution like a context please let me know what you think
Additional context
None.