feat(ViewFilter): add support to manipulate query params
Related pulse
https://uncinc.monday.com/boards/99020894/pulses/4392963293
What does this MR do?
This MR adds helpers to facilitate the manipulation query params (for uses such as ViewFilters), so that filters selected in view filters are also reflected in the URL bar. The new feature is opt-in and backwards-compatible.
Changes
- Adds a
useQuery
hook which interfaces withconnected-redux-router
to listen to and dispatch changes in the query params (for internal use; the library does not export this). - introduces a
<ViewFilterProvider>
which allows child components to access to auseViewFilterQuery
hook to manage view filter state.
Edited by Pandu Supriyono