-
-
Notifications
You must be signed in to change notification settings - Fork 189
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
Issues while referencing DeepChat element #99
Comments
Hi @K-Jadeja. So your code would look something like this:
The Let me know if you need any further assistance. I have thought about this a little more and will update the onComponentRender event to pass the actual component as an argument, so it would be easier to access it. I'll include it in the next release. |
Thanks @OvidijusParsiunas! The code works but I still get these errors Did I miss something? |
My apologies, for some reason the example NextJs project wasn't giving me that Type error.
|
Thank you so much @OvidijusParsiunas! It works now :) |
Happy to hear it helped! I will close this issue. Thanks! |
I've been following issue #59 and am trying to wrap the DeepChat element and reference the wrapper element. I am trying to get your first suggestion to work with my code but I am facing a lot of errors like
Property 'children' does not exist on type 'never'
and'ref.current' is possibly 'null'.
Sorry, I am new to typescript and would really appreciate any help getting this to work
My code:
My main aim is to use methods like
getMessages()
to store and retrieve chat history from a database.Thanks
The text was updated successfully, but these errors were encountered: