---
title: "Discussion on \"How calling setState in useEffect can cause re-renders in a loop.\" | Hashnode"
description: "Discussion on \"How calling setState in useEffect can cause re-renders in a loop.\". And using Static Site Generation to improve the SEO and page loading speed."
url: "https://hashnode.com/posts/how-calling-setstate-in-useeffect-can-cause-re-renders-in-a-loop/64774e884eda36246a5476df"
---

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

Discussion

# [How calling setState in useEffect can cause re-renders in a loop.](https://gauravv.hashnode.dev/how-calling-setstate-in-useeffect-can-cause-re-renders-in-a-loop?utm_source=hashnode&utm_medium=feed)

And using Static Site Generation to improve the SEO and page loading speed.

May 31, 2023 · 4 min read · gauravv.hashnode.dev  
Read the article

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

## Written by

[GAURAV BURANDE](https://hashnode.com/@gauravvan)

@gauravvan · India

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

Web development

I am a web developer.

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
