Messages duplicate
See original GitHub issueDescribe the bug Messages are doubled with each new trigger.
To Reproduce Steps to reproduce the behavior:
- clean install the repo inside a fresh react app.
- use the code example below.
Expected behavior messages should appear only once, as defined in the code. Instead, they appear multiple times (see screenshot)
Desktop (please complete the following information):
- OS: Mac OS Monterey
- Browser Latest Chrome, Safari

Code
import "./App.css";
import ChatBot from "react-simple-chatbot";
function App() {
const steps = [
{
id: "0",
message: "Message 0",
trigger: "1",
},
{
id: "1",
message: "Message 1",
trigger: "2",
},
{
id: "2",
message: "Message 2",
end: true,
},
];
return (
<div className="App">
<ChatBot steps={steps} />
</div>
);
}
export default App;
Issue Analytics
- State:
- Created a year ago
- Comments:8
Top Results From Across the Web
How to Stop Sending Duplicate Text Messages on Android
A variety of problems can cause duplicate messages on Android and this article will teach you how to fix that from happening.
Read more >Why did the person I sent a message to get duplicate ...
If you find duplicate messages sent within a few seconds of each other. This means that Twilio sent multiple messages to the carrier,...
Read more >6 Ways to Solve Receiving Duplicate Text Messages Samsung
Method 1: Force Restart Samsung ... Perhaps the duplicate text message keeps re-occurring, try as much as possible to restart your Samsung device....
Read more >Android sending double or duplicate text messages? You're ...
Some Android users are reporting that their phones are sending double or duplicate text messages and here are some workarounds for the ...
Read more >Duplicate text messages - Apple Support Communities
I have an iPhone and I'm receiving a duplicate from an Android user. This isn't a carrier issue. They show only a single...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found

I’ve investigated more an found the difference that made it work for me. Before I used:
which produced the error, switching it to
made it work. Hope that helps.
This worked for me thanks!!!