Skip to content
Discussion options

You must be logged in to vote

Hi!

After some deeper investigation, I realized that the issue was actually on my side.

In my LocalResource, I was calling reload.set(false);, which obviously causes the resource to re-run every time because the signal is being modified during its execution.
This causes an endless loop.

However, what still confuses me is that this exact same code used to work fine in Leptos 0.7.8 and only broke after updating to 0.8.0.
So the real question/issue is:
Why did this pattern work before, even though it probably shouldn't have?
It seems like this might have been undefined behavior before, which is now being handled more strictly.

Also, since I’m here, I’d like to ask:
What would be the recommen…

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@CedricGARVENES
Comment options

Answer selected by CedricGARVENES
@gbj
Comment options

gbj May 15, 2025
Maintainer

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants