Tobias Vasquez
TTypebot
•Created by Tobias Vasquez on 7/23/2024 in #help-and-questions
Cant mount the chatbot (initBubble) after unmounting
as soon as i can, i'll send you a video of it
17 replies
TTypebot
•Created by Tobias Vasquez on 7/23/2024 in #help-and-questions
Cant mount the chatbot (initBubble) after unmounting
i did that already, with the help of the console, i added some breakpoints to see how it behaved, but when it gets to the initBubble() it skips that part of the code
17 replies
TTypebot
•Created by Tobias Vasquez on 7/23/2024 in #help-and-questions
Cant mount the chatbot (initBubble) after unmounting
but it makes no sense, i have the same script in my code, there is nothing else
17 replies
TTypebot
•Created by Tobias Vasquez on 7/23/2024 in #help-and-questions
Cant mount the chatbot (initBubble) after unmounting
there is no error at all in the console
17 replies
TTypebot
•Created by Tobias Vasquez on 7/23/2024 in #help-and-questions
Cant mount the chatbot (initBubble) after unmounting
yep, it is indeed intended, i tried a different approach that force me to comment those lines, that's why that piece of code is commented
17 replies
TTypebot
•Created by Tobias Vasquez on 7/23/2024 in #help-and-questions
Cant mount the chatbot (initBubble) after unmounting
just pinging you so you can dive into this, whenever you have some time ofc @Baptiste
17 replies
TTypebot
•Created by Tobias Vasquez on 7/23/2024 in #help-and-questions
Cant mount the chatbot (initBubble) after unmounting
17 replies
TTypebot
•Created by Tobias Vasquez on 7/23/2024 in #help-and-questions
Cant mount the chatbot (initBubble) after unmounting
i've recorded this video, showcasing the problem i told you, if you have any questions regarding the steps, please dont hesitate to ask
17 replies
TTypebot
•Created by Tobias Vasquez on 7/23/2024 in #help-and-questions
Cant mount the chatbot (initBubble) after unmounting
I'll give you a bit of context, there are 2 different flows inside the same chatbot, one flow triggers if you have the localStorage key "triggerMode" the other one triggers if you dont have that key. You get assigned that key if you click a button inside the website, with that being said, i'll explain the problem.
1. Steps to reproduce:
Click the bubble that opens the chatbot with the main flow
Click a button inside the website that listens for a click to execute the script
Once clicked the button, it should do this:
Close the chatbot
Unmount the current chatbot
Initiate the chatbot with a different flow given the apiHost & typebot
Then open the chatbot and continue with the flow
2. What is happening, is that when you click the button inside the website, the chatbot closes & unmounts, but it wont mount again and the bubble disappears.
3. I expect when clicking on the button, the bot would unmount, and mount again given the parameters provided.
17 replies