Tag: Vue 3

  • Debounce inside a Vue composable

    by

    in

    In the Queerlit frontend, I keep a query object in vuex state, and there’s a helper function for modifying the query object and then immediately performing a search request. This helper lives in a composable, useSearch() in search.composable.js. The search function is debounced, because it may be issued multiple times, quickly in succession. This happens…

  • by

    in

    I have been adding Matomo tracking to the Queerlit frontend, using Dennis Ruhe’s vue-matomo plugin. The plugin hooks nicely into the router and tracks page views for each route change. It has not, however, been tracking the page title. My first attempt to fix this was by sending the setDocumentTitle event after async-fetching the data…