Skip to content
Magenaut

Magenaut

  • Home
  • Topics
    • Notes
    • Tutorial
    • Bug fixing
    • Extension
    • Server
  • Q&A
  • Privacy Policy
  • About

infinite-loop

React simple useEffect infinit loop

November 6, 2022 by Magenaut

I do not understand why this code is an infinit loop. I this it is because I update my state in else if condition. But i’d like to update an array of urls when getting new api answer.

Categories Q&A, ReactJS Tags infinite-loop, javascript, react-hooks, reactjs Leave a comment

React useEffect infinite loop fetch data axios

October 30, 2022 by Magenaut

I’m getting an infinite loop with this code.

Categories Q&A, ReactJS Tags axios, fetch, infinite-loop, reactjs, use-effect Leave a comment

React Hook useEffect has missing dependencies: xxx. Either include them or remove the dependency array react-hooks/exhaustive-deps

October 26, 2022 by Magenaut

I am making an api call from useEffect hook

Categories Q&A, ReactJS Tags infinite-loop, reactjs, use-effect Leave a comment

NodeJS memory consumption in an infinite loop

September 27, 2022 by Magenaut

I don’t know if this is a bug with Node or V8, but if I run the following code the node process leaks memory. The GC never seems to kick in and in a few seconds it’s consuming >1GB of memory. This is unexpected behavior. Am I missing something?

Categories Node.js, Q&A Tags infinite-loop, javascript, memory-leaks, node.js, v8 Leave a comment

cpu usage increasing up to 100% in infinite loop in thread

August 26, 2022 by Magenaut

I am implementing a web based chat platform in ASP.NET Web Application, and I use technique similar to long polling. I mean I keep each web request from client for a specific time period(timeout) or until new message arrives, and then response is sent to the client.

Categories ASP.NET, Q&A Tags asp.net, c#, cpu-usage, infinite-loop, multithreading Leave a comment

How to run a script forever?

August 16, 2022 by Magenaut

I need to run my Python program forever in an infinite loop.. Currently I am running it like this – #!/usr/bin/python import time # some python code that I want # to keep on running # Is this the right way to run the python program forever? # And do I even need this time.sleep … Read more

Categories Python, Q&A Tags infinite-loop, python Leave a comment

Is there an expression for an infinite iterator?

August 15, 2022 by Magenaut

Is there a straight-forward expression that can produce an infinite iterator?

Categories Python, Q&A Tags generator, infinite-loop, iterator, python Leave a comment

Recent Comments

  • silverplugins217 on How to add placeholder for contact form7 for dropdown?
  • Shreyas Ikhar on How to add a custom CSS class to core blocks in Gutenberg editor?
  • Magenaut on How to call function on timer ASP.NET MVC
  • Ebaad Uddin on How to call function on timer ASP.NET MVC
  • michealSmith07 on Is there a way to dynamically refresh the less command?

Tags

.net adobe-illustrator adobe-photoshop ajax arrays asp.net asp.net-core asp.net-mvc bash c# css database django eloquent express html java javascript jquery json laravel laravel-4 laravel-5 laravel-8 linux list mongodb mongoose mysql node.js npm pandas php python python-3.x react-hooks react-native react-router reactjs redux regex sql string typescript wordpress
© 2023 Magenaut • Built with GeneratePress