From 291835fbb3efb350ed2e6bd2300885a982294f10 Mon Sep 17 00:00:00 2001 From: ZabihollahNamazi Date: Mon, 25 May 2026 12:14:22 +0100 Subject: [PATCH 1/2] hashtag slowing down --- front-end/views/hashtag.mjs | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/front-end/views/hashtag.mjs b/front-end/views/hashtag.mjs index 7b7e9969..7961d366 100644 --- a/front-end/views/hashtag.mjs +++ b/front-end/views/hashtag.mjs @@ -17,7 +17,13 @@ import {createHeading} from "../components/heading.mjs"; function hashtagView(hashtag) { destroy(); - apiService.getBloomsByHashtag(hashtag); + //Only fetch if we are actually switching to a NEW hashtag or haven't loaded it yet + if (state.currentHashtag !== hashtag) { + // Tell the state what hashtag we are trying to load so it doesn't get stuck + state.updateState({ currentHashtag: hashtag }); + apiService.getBloomsByHashtag(hashtag); + return; // Stop this cycle; the state-change listener will re-trigger this view cleanly with data! + } renderOne( state.isLoggedIn, From 2c7d5b04f5d3fca86dbe35893bc84407d6e33fbd Mon Sep 17 00:00:00 2001 From: ZabihollahNamazi Date: Mon, 25 May 2026 12:15:00 +0100 Subject: [PATCH 2/2] git ignore --- backend/.gitignore | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/backend/.gitignore b/backend/.gitignore index 30a34276..ac6bb9d3 100644 --- a/backend/.gitignore +++ b/backend/.gitignore @@ -1,3 +1,3 @@ /.env -/.venv/ +/venv/ *.pyc