From 581feaaaf63de8498c85c25d3700d088b3a6b977 Mon Sep 17 00:00:00 2001 From: Fab-c <71762204+fab-c14@users.noreply.github.com> Date: Mon, 19 Oct 2026 17:29:36 +0530 Subject: [PATCH] Fix the hashtag solution so the request loop actually stops. The published check compared a bare tag with currentHashtag, which is stored with a leading hash, so the condition never became false. Co-authored-by: Cursor --- common-content/en/module/legacy/fixing/index.md | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/common-content/en/module/legacy/fixing/index.md b/common-content/en/module/legacy/fixing/index.md index d15469c6c..a95773686 100644 --- a/common-content/en/module/legacy/fixing/index.md +++ b/common-content/en/module/legacy/fixing/index.md @@ -35,8 +35,10 @@ Fix your code! On line 20 of `views/hashtag.mjs`, only fetch if the hashtag has changed. +The router passes the tag without a `#`, for example `trees`. `getBloomsByHashtag` stores `state.currentHashtag` with a `#`, for example `#trees`. Compare those two values in the same form. If you leave the `#` off one side, the check is always true and the requests never stop. + ```js -if (hashtag !== state.currentHashtag) { +if (`#${hashtag}` !== state.currentHashtag) { apiService.getBloomsByHashtag(hashtag); } ```