[Problem/Question]
We use a custom form to apply some filters to the group channel list, for example a toggle for unreadChannelFilter
.
After migrating from 3.6.10 to 3.13.4, and applying https://sendbird.com/docs/chat/uikit/v3/react/introduction/group-channel-migration-guide, and especially the replacement of queries.channelListQuery
by channelListQueryParams
, the changes to any of the query params are not triggering a refresh of the group channels list anymore.
I tried:
- to disable cache in
SendBirdProvider
withsdkInitParams={{ localCacheEnabled: false }}
- to embed the component within
GroupChannelListProvider
then use therefresh
method ofuseGroupChannelListContext
in the child component that manage the GroupChannelList.
but couldn’t find a way for the list to take in account filter changes once the group channel list is created.
// If problem, please fill out the below. If question, please delete.
[UIKit Version]
// What version of the SDK are you using?
3.13.4
[Reproduction Steps]
// Please provide reproduction steps and, if possible, code snippets.
- create a group channel list with some
channelListQueryParams
which values are passed from a custom form - update some of the params passed to
channelListQueryParams
You will see that the group channels is not filtered with new values, it’s actually re-rendered but with the same non-filtered values.
[Frequency]
// How frequently is this issue occurring?
Always.
[Current impact]
// How is this currently impacting your implementation?
Blocking migration from ChannelList
to GroupChannelList
as we need this filter update to impact the list in order to maintain the same behaviour.