---
title: "Discussion on \"Using setTimeout, setImmediate and setInterval on useEffect\" | Hashnode"
description: "Discussion on \"Using setTimeout, setImmediate and setInterval on useEffect\". Scenario these can be used:\nhttpError is cutting the execution of my useEffect instantly.\nIf the httpError variable is cutting your useEffect right away, it likely means that the httpError variable is being set immediately and the effect is only runn..."
url: "https://hashnode.com/posts/using-settimeout-setimmediate-and-setinterval-on-useeffect/63ca270c441dc878ce9c449c"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [Using setTimeout, setImmediate and setInterval on useEffect](https://asherl.com/using-settimeout-setimmediate-and-setinterval-on-useeffect?utm_source=hashnode&utm_medium=feed)

Scenario these can be used: httpError is cutting the execution of my useEffect instantly. If the httpError variable is cutting your useEffect right away, it likely means that the httpError variable is being set immediately and the effect is only runn...

Jan 20, 2023 · 5 min read · asherl.com  
Read the article

-   [#reactjs](https://hashnode.com/tag/reactjs)
-   [#typescript](https://hashnode.com/tag/typescript)
-   [#javascript](https://hashnode.com/tag/javascript)
-   [#useeffect](https://hashnode.com/tag/useeffect)

## Written by

[Asher](https://hashnode.com/@asherl)

@asherl · Philippines

  
[View profile](https://hashnode.com/@asherl)

Software and Infra Engineer

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
