This repository has been archived by the owner on Feb 22, 2023. It is now read-only.
Move setting search media type from sub pages to the search page #361
Labels
💻 aspect: code
Concerns the software code in the repository
✨ goal: improvement
Improvement to an existing user-facing feature
🟩 priority: low
Low priority and doesn't need to be rushed
Problem
Currently, the search media type is set when any sub-page (
all
,image
,audio
,video
) mounts. This means that the code is repeated in each sub-page, and each sub-page needs to call Vuex store.Description
The detection of search type can happen on each route change within the search page.
Implementation
The text was updated successfully, but these errors were encountered: