Electron App keeps reloading on submit


Hey community !
I cannott display new information in my desktop app when i press submit , page reloads , although i have put event.preventDefault(); in callback where I update page . I want to display data recieved from an npm api package. I perform submit button and api handling inside renderer.js . Please help me over .
submit.addEventListener("submit", function(event) { event.preventDefault(); alert("abc");


Can you share the rest of your submit callback and your response handler? I think that would help to understand how you’re handling request and response.