vue Posts

  • Progressively Enhanced Form Validation

    In this post, we'll examine an approach to progressively enhance your HTML5 form validation in your Vue.js application, using existing DOM API's and minimal overhead to your existing Vue components.

    a month ago | 12 min read

    Tags: vue, javascript, spa, forms

  • Instance-Aware Vuex Modules - Part 3

    Note: This is part 3 of a 3-part series on "Instance Aware Vuex Modules". In Part 1 we covered a basic introduction to Vuex and the use of namespaced modules. In Part 2 we covered the usage of dynamic route-based Vuex modules, the issues with map* helpers, and how we can work around them with our own mapInstance* helpers methods. In this post, we'll explore other opportunities where instance-aware Vuex modules can help us.

    a month ago | 18 min read

    Tags: vue, vuex, javascript, spa

  • Instance-Aware Vuex Modules - Part 2

    Note: This is part 2 of a 3-part series on "Instance Aware Vuex Modules". In Part 1 we covered a basic introduction to Vuex and the use of namespaced modules. In this post, we'll explore using dynamically-namespaced Vuex modules alongside dynamic routes in vue-router, and some interesting challenges presented.

    a couple of months ago | 16 min read

    Tags: vue, vuex, javascript, spa

  • Instance-Aware Vuex Modules - Part 1

    Vuex is a great state-management tool provided by the Vue core team. It's especially useful in server-side rendered (SSR) applications as a mechanism to send the server-side state up to the client for the app hydration process. In this post, we'll look at some of the basics of Vuex and how we can use namespaced modules to isolate our logic into small, targeted modules.

    a couple of months ago | 6 min read

    Tags: vue, vuex, javascript, spa

  • Component-Driven Performance Patterns in Vue

    As web apps grow more complex, we end up sending larger JS/CSS bundles to the client. If you're not careful, before long you can find yourself with a site that no longer snappy on slower connections due to the sheer amount of time it takes to send the bundles across the wire. This post aims to document handful of patterns we've found handy at URBN to keep bundles small and our load times fast.

    a couple of months ago | 9 min read

    Tags: vue, javascript, spa, performance

  • A Look Inside Vue's Change Detection

    A layman's interpretation of Occam's Razor can be boiled down to "the simplest explanation is usually the correct one." This was exactly what came to mind the moment I learned how Vue.js implements it's change detection under the hood. It's simple, elegant, and beautiful.

    a couple of years ago | 10 min read

    Tags: vue, javascript, spa