https://discord.gg/botpress logo
Passing userData at the beginning of the conversat...
# 🤝help
b
I had a question about the react components. I've been using the old 2.X versions and want to switch to the new ones which use the useWebchat hooks. In the old version I could pass userData in the WebchatProvider so that it was there when the conversation started; is there a way to do this with the new components? The useWebchat hook only takes a clientId. I know I can update the user manually using the client but I want the user data to be available in my flows from the very beginning of the conversation. Discussed with @prehistoric-airplane-85682 at office hours; @thousands-gigabyte-24698 said they had the same use case as well.
p
Yes, so, unfortunately, the workaround that was suggested by @thousands-gigabyte-24698 is currently the only way to achieve this using React. I will escalate this lack to the appropriate team however.
b
OK. I will probably just continue using the older components then until this is added. Is there some way to be notified when there are updates? I don't think there are any changelogs for the components.
p
The component updates would be included in the change log in the docs.