Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion backend/.gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
/.env
/.venv/
/venv/
*.pyc
8 changes: 7 additions & 1 deletion front-end/views/hashtag.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down