-
Notifications
You must be signed in to change notification settings - Fork 1.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Custom UI sample error (21.customization-plain-ui) - hooks from 'botframework-webchat-component' not defined #2611
Comments
I think not all hooks are completed yet, but if you use latests bits you can test the sample (removing suggested actions component by the moment). Almost every day the list of completed hooks is growing (good work rewriting components). My problem testing the sample is that using and connecting with our own bot I always get activities as an empty list (useActivities hook). Is there someone experiencing the same? How can I test if responses from bot are arriving ? Thanks!! |
@marq47 The
|
@samazadi thanks for reporting, we should write automated tests for our samples so they don't break from time to time. 🙇🏻♂️ @marq47 thanks for trying out our new hooks. :) We try to scope our hooks into 3 types:
We are very new to hooks for composing UI components, please feel free to comment. |
@compulim no worries, i know how it goes. Any instructions on how I can fix it and test out the sample? Or any idea of when it can be fixed? |
Any update on these hooks? |
@samazadi sorry for the delay. I am very hopeful that hooks will be fully implemented before the end of this week. We will circle back to this sample once the final PRs are in. |
Sounds good, thanks you! :) |
Hi @corinagum just wanted to see if there's been any progress? We're migrating to V4 and I really want to use these hooks in our implementation |
@samazadi All of the hooks were included in last weeks v4.7.1 release. Updating your |
@tdurnford quick side question... If I wanted to add custom data to the channelData of my messages, whats the best way to do that using the new hooks? |
@samazadi using a custom store middleware is probably still the best way to add custom channel data. Take a look at the Piggyback Data on Every Outgoing Activity Web Chat sample. |
@tdurnford thank you! Any chance there is documentation or examples on how to do this using React? |
Screenshots
Version
Describe the bug
Running 21.customization-plain-ui throwing undefined errors for all hooks. Not sure if I'm missing a package, but I'm assuming the sample should work out of the box.
To Reproduce
Steps to reproduce the behavior:
2 cd BotFramework-WebChat/samples/21.customization-plain-ui
App starts on localhost:3000 but throws an error "TypeError: Cannot read property 'useSendMessage' of undefined" and stack trace points to "const { useSendMessage } = hooks;"
Expected behavior
App should start up
Additional context
[Bug]
The text was updated successfully, but these errors were encountered: