{"repo":"sumcumo/vue-history","free":true,"listed":false,"github":"https://github.com/sumcumo/vue-history","clone":"git clone https://github.com/sumcumo/vue-history.git","description":"Vue plugin to log nested method calls, errors, asynchronous processes and timings","language":"TypeScript","stars":53,"topics":["vue","vuejs","vuejs-plugin","logging"],"license":"Apache-2.0","category":"analytics","readme_excerpt":"Vue History The purpose of Vue History is to keep track of what's happening inside Vue components. It logs all method calls and keeps track of nested method calls, errors, asynchronous processes and timings . The plugin was created alongside Vue States, but can be applied to any Vue component. Checkout the examples at https://github.com/JohannesLamberts/vue-states-examples. Whats displayed in the screenshot is Vue History in action with an instant feed to the console. - the status of each call: pending doneOk doneErrored - nested calls: onCheckoutSuccess beeing called by checkout - arguments: addProductToCart args: [3] - timings: checkout taking about 100ms - errors: checkout causing an exception with the message 'Something went wrong' Install Apart from strict mode there are a few more options: Apply After installation, tracking can be activated on any component like this: Print Vue History adds a $globalHistory property onto every component. You can use this to get a reference to the GlobalHistory. The GlobalHistory and the local ComponentHistory expose the same interface. The print can be customized: Rules There are actually just two rules you must follow to pass the strict mode. Violations will be logged like this: Methods The components data may only be changed through its methods . No double-data bindings, no direct changes from outside the component. Synchronous changes All data changes must be applied in the synchronous part of the component. Goodies Watch for forgott","default_branch":null,"files":null,"tree":[],"storefront":"/r/sumcumo","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/sumcumo/vue-history/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}