How to use useScrollTo with ReactWebChat for a react based chat application #5007
Labels
Bot Services
Required for internal Azure reporting. Do not delete. Do not change color.
customer-reported
Required for internal Azure reporting. Do not delete.
question
Further information is requested. Stack Overflow candidate
I have a question
I have a chat application, in which we render the chat using
ReactWebChat
. Now I want that, when a message comes from the bot, we scroll to top of that message and not to end like the default behaviour.I want to use the
useScrollTo
hook for this purpose, but I am getting error that says :-This hook can only be used inside the descendent of a <Composer>
How can I use the
useScrollTo
hook along withReactWebChat
to achieve the required behaviour?The text was updated successfully, but these errors were encountered: