Local State and Server Cache: Finding a Balance
summary
Shows a concrete alternative to implementing server cache with Vue by using vue-query against a local axios REST API (a Dune characters demo), replacing repetitive Vuex loading/error mutations with keyed useQuery calls, array keys for params, cache-first reads, and automatic 3 retries. Cache entries become stale after 20s stale time so cache hits avoid duplicate requests and after staleness an API refetch occurs, demoed working end to end.
AI-written summary · about
chapters (4)
related talks
25mLocal State and Server Cache: Finding a Balance
28mLocal state and server cache: how to balance them with vue-query
27mDeep down the rabbit hole of state management and server cache
44mData Management in Vue
22mYou might not need Vuex
29mEfficient server state management
31mCommon Mistakes in Vue and Nuxt and How to Avoid Them
24mCache for Commerce Performance and Optimization for High Volume Sales
