diff --git a/front-end/views/hashtag.mjs b/front-end/views/hashtag.mjs index 7b7e996..8d25349 100644 --- a/front-end/views/hashtag.mjs +++ b/front-end/views/hashtag.mjs @@ -17,7 +17,10 @@ import {createHeading} from "../components/heading.mjs"; function hashtagView(hashtag) { destroy(); - apiService.getBloomsByHashtag(hashtag); + if (state.currentHashtag !== hashtag) { + state.currentHashtag = hashtag; + apiService.getBloomsByHashtag(hashtag); + }// Re-renders won’t refetch. Only fetches when the hashtag actually changes. renderOne( state.isLoggedIn,