-
Notifications
You must be signed in to change notification settings - Fork 114
Open
Labels
Description
Have you already checked if a similar item is present on muk?
- Yes, I have already checked the existing components/hooks/utils.
What do you expect from this request?
Hook
Description
For the data-retrieval hooks we use in the Datagrid that use filtering / sorting (useIceberg/v2/v6) we want to use the searchParams (if present) to pre-fill the filtering / sorting states.
This enables the customer to bookmark / share urls with specific filters already set.
E.g. filter on a specific category / product type
Where do you expect to use this?
Datagrid filtering
Do you have mock-up?
no
When do you expect this to be delivered?
31-01-26
Additional Information
We currently preset the filter / sorting data with empty values in useDataRetrievalOperations (ref: https://github.com/ovh/manager/blob/master/packages/manager-ui-kit/src/hooks/data-api/useDataRetrievalOperations.ts)
This gives us also a chance to utilise nuqs (ref: https://nuqs.dev/) to ensure the preset values to be type-safe.