bug: MessageList does not respond to stateful customActiveChannel
prop after initial render
#2656
Labels
customActiveChannel
prop after initial render
#2656
I am trying to set the user's focused channel from a URL parameter once the page loads, and after the client has initialized. I get this channel URL and try to set the customActiveChannel value but it doesn't seem to update if it's a stateful value that starts
undefined
.To Reproduce
Steps to reproduce the behavior:
const [activeChannel, setActiveChannel] = useState<string | undefined>(undefined)
setActiveChannel
after the initial load and once MessageList has already received a prop ofcustomActiveChannel = undefined
Expected behavior
The ChannelList should focus the channel with the id of
customActiveChannel
prop if it has changed.Package version
Desktop:
The text was updated successfully, but these errors were encountered: