Skip to content

Conversation

@sandrahoang686
Copy link
Contributor

@sandrahoang686 sandrahoang686 commented Oct 29, 2025

So when reviewing the error boundary PR #176 which I did a couple of days ago.. apologies for not approving and bringing this up sooner but I realized the app looked like it was infinitely rendering.. Is this supposed to happen?? If not, I went down a path trying to figure out where this was happening. It looked like the useStacValue hook's useEffect had a dep fileUpload which is hook from chakra that was causing this.

This PR just removes that dep to stop the app from infinitely rendering. But maybe this could be solved another way? Either way, I dont think this should cause a big issue having that missing dep as I think it will still be stable enough. What do you think @gadomski?


Behavior before (infinite render):

stac_map_infinite_render_ex.mov

Behavior now:

stac_map_infinite_render_fix.mov

@sandrahoang686 sandrahoang686 changed the title Remove fileUpload dep in useStacValue useEffect fix: Remove fileUpload dep in useStacValue useEffect Oct 29, 2025
@gadomski gadomski merged commit 0fbd697 into main Oct 30, 2025
4 checks passed
@gadomski gadomski deleted the fix-infinite-render branch October 30, 2025 16:29
@github-actions
Copy link

🎉 This PR is included in version 0.9.6 🎉

The release is available on GitHub release

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants