Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Hide recommendations from the Watch component, instead of hiding itself #5203

Merged
merged 1 commit into from
Jun 1, 2024

Conversation

absidue
Copy link
Member

@absidue absidue commented May 31, 2024

Hide recommendations from the Watch component, instead of hiding itself

Pull Request Type

  • Performance improvement

Description

Currently the "Hide Recommended Videos" setting creates the watch-video-recommendations component with the props, starts rendering the template and then encounters the v-if that stops it actually rendering anything onto the page. This pull request instead moves the v-if into the parent component (Watch), that way no work is done concerning that component, not even creating the component instance, when the "Hide Recommended Videos" setting is enabled.

Testing

Check that the "Hide Recommended Videos" setting still works in both it's on and off state.

Desktop

  • OS: Windows
  • OS Version: 10
  • FreeTube version: 0404544

@github-actions github-actions bot added the PR: waiting for review For PRs that are complete, tested, and ready for review label May 31, 2024
@FreeTubeBot FreeTubeBot enabled auto-merge (squash) May 31, 2024 22:30
@FreeTubeBot FreeTubeBot merged commit 94ab40c into FreeTubeApp:development Jun 1, 2024
5 checks passed
@github-actions github-actions bot removed the PR: waiting for review For PRs that are complete, tested, and ready for review label Jun 1, 2024
@absidue absidue deleted the hide-recommendations branch June 1, 2024 14:26
PikachuEXE added a commit to PikachuEXE/FreeTube that referenced this pull request Jun 3, 2024
* development: (36 commits)
  Remove unused database compacting IPC channel (FreeTubeApp#5212)
  Translated using Weblate (Hungarian)
  Translated using Weblate (Portuguese)
  Translated using Weblate (Finnish)
  Compressed Images (FreeTubeApp#5209)
  Cleanup unused channel hiding code in ft-list-video-numbered (FreeTubeApp#5208)
  Translated using Weblate (Serbian)
  Hide recommendations from the Watch component, instead of hiding itself (FreeTubeApp#5203)
  Consolidate clear subscriptions cache into one mutation (FreeTubeApp#5202)
  Translated using Weblate (Spanish)
  Translated using Weblate (French)
  Translated using Weblate (German)
  Translated using Weblate (Polish)
  Translated using Weblate (Turkish)
  Translated using Weblate (Hungarian)
  Translated using Weblate (Croatian)
  Store comment reply tokens separately to avoid reactivity (FreeTubeApp#5190)
  Translated using Weblate (Croatian)
  Translated using Weblate (German)
  Translated using Weblate (Czech)
  ...

# Conflicts:
#	src/datastores/handlers/base.js
#	src/renderer/store/modules/subscriptions.js
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants