Skip to content

WestMidlands | 26-SDC-Mar | Chioma Okeke | Sprint 1 | hashtag slows down browser - #248

Open
JanefrancessC wants to merge 2 commits into
CodeYourFuture:mainfrom
JanefrancessC:slow-browser
Open

WestMidlands | 26-SDC-Mar | Chioma Okeke | Sprint 1 | hashtag slows down browser#248
JanefrancessC wants to merge 2 commits into
CodeYourFuture:mainfrom
JanefrancessC:slow-browser

Conversation

@JanefrancessC

Copy link
Copy Markdown

Learners, PR Template

Self checklist

  • I have titled my PR with Region | Cohort | FirstName LastName | Sprint | Assignment Title
  • My changes meet the requirements of the task
  • I have tested my changes
  • My changes follow the style guide

Changelist

Added a guard in hashtagView against slowing down the browser

@JanefrancessC JanefrancessC added 📅 Sprint 1 Assigned during Sprint 1 of this module Needs Review Trainee to add when requesting review. PRs without this label will not be reviewed. Module-Legacy-Code The name of the module. labels Jul 2, 2026
Comment on lines +20 to +22
if (hashtag !== state.currentHashtag) {
apiService.getBloomsByHashtag(hashtag);
}

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You identified what could be done to stop the "loop" from happening, but have you tested your code to see if it has actually stopped the "fetch-render" loop?

@cjyuan cjyuan added Reviewed Volunteer to add when completing a review with trainee action still to take. and removed Needs Review Trainee to add when requesting review. PRs without this label will not be reviewed. labels Jul 23, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Module-Legacy-Code The name of the module. Reviewed Volunteer to add when completing a review with trainee action still to take. 📅 Sprint 1 Assigned during Sprint 1 of this module

Projects

Status: Backlog

Development

Successfully merging this pull request may close these issues.

2 participants