Skip to main content

Monday.listen running more times than it should

  • February 17, 2021
  • 1 reply
  • 1070 views

Hello everyone!
this is my first topic here, so i hope that i’m doing it in the right section

so, i1m having a strange problem, that i can’t seem to find the cause

i made a simples app view in react, where i did a console.log with the response from the monday.listen(“eventes”), and, for some reason, i get multiple logs with just 1 action on the boards

hope someone can shed a light on whats is going on

full code of the app:

import React, { useState } from “react”;
import “./App.css”;
import mondaySdk from “monday-sdk-js”;

export default function App() {

const monday = mondaySdk();

monday.listen(“events”, res => {

console.log(res)

})

return (

<div className="App">
  Automações
</div>

)
}

This topic has been closed for replies.

1 reply

  • Community Expert
  • February 18, 2021

Hey @Oscar1 ,

could you link the log results, so we can see what’s wrong.

Greetings