Closed wbholland closed 4 months ago
Addition of 'watch' import in Players.vue
This change includes importing a new feature watch
for better data tracking and operations.
Update of onMounted
function
The onMounted
function, which runs once the component is fully loaded, has been updated. It now calls a new function called validateQuery
to ensure our data query is valid.
Inclusion of new validateQuery
function
A new function validateQuery
is introduced as part of this PR which checks to see if the perPage
value, which indicates how much data is displayed on each page, is valid. If it's not, it resets the page back to 1. This is to prevent errors and ensure that data is displayed correctly.
Addition of watcher in route Finally, a watcher has been incorporated that monitors route changes in our app. It updates the needed data as per the changes on route. This can lead to smoother user navigation and overall better user experience.
LGTM!
in the previous change (https://github.com/KenEucker/biketag-vue/issues/208), pressing the back button failed to update the contents of this page. This is my try at fixing that.