Skip to content
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

Payload missing on chatbot custom component #176

Open
cavaco-julianlosada opened this issue Dec 29, 2023 · 3 comments
Open

Payload missing on chatbot custom component #176

cavaco-julianlosada opened this issue Dec 29, 2023 · 3 comments

Comments

@cavaco-julianlosada
Copy link

Hi @FredrikOseberg, I noticed that by trying to setup a payload object with custom information for a bot message (I have a custom component for this) the only props that I receive are "message: string, loader: Comp", I was under the impression that payload should be present as prop here as well

<ConditionallyRender condition={!!customComponents?.botChatMessage} show={callIfExists(customComponents?.botChatMessage, {. message, loader: <Loader />, })}

I saw this on the codebase of the bot message component, Is it intentional or is this a bug?

@manu-ho
Copy link

manu-ho commented Jan 7, 2024

I propose an implementation here:
#179

@nayacirdan
Copy link

@FredrikOseberg any chance this can be reviewed?

@justinnc
Copy link

justinnc commented Jun 5, 2024

hi @FredrikOseberg Please review this. I think this is very necessary.
Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants