{"id":17267346,"url":"https://github.com/imcvampire/vue-reload-route-data","last_synced_at":"2025-03-26T11:13:57.198Z","repository":{"id":66072043,"uuid":"75603386","full_name":"imcvampire/vue-reload-route-data","owner":"imcvampire","description":"A small Vuejs mixin for reload route data manually","archived":false,"fork":false,"pushed_at":"2016-12-28T03:15:06.000Z","size":26,"stargazers_count":0,"open_issues_count":0,"forks_count":1,"subscribers_count":3,"default_branch":"master","last_synced_at":"2024-04-26T03:20:44.449Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/imcvampire.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null}},"created_at":"2016-12-05T08:16:02.000Z","updated_at":"2016-12-25T14:58:14.000Z","dependencies_parsed_at":"2024-01-14T06:04:24.542Z","dependency_job_id":"38213ff7-b987-4e4c-b670-ea41cb920d43","html_url":"https://github.com/imcvampire/vue-reload-route-data","commit_stats":{"total_commits":13,"total_committers":1,"mean_commits":13.0,"dds":0.0,"last_synced_commit":"c8663a41416ac4bf6deefd79ff935387dd91d4d2"},"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/imcvampire%2Fvue-reload-route-data","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/imcvampire%2Fvue-reload-route-data/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/imcvampire%2Fvue-reload-route-data/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/imcvampire%2Fvue-reload-route-data/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/imcvampire","download_url":"https://codeload.github.com/imcvampire/vue-reload-route-data/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245641437,"owners_count":20648644,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-10-15T08:10:25.030Z","updated_at":"2025-03-26T11:13:57.174Z","avatar_url":"https://github.com/imcvampire.png","language":"JavaScript","funding_links":[],"categories":["Awesome Vue.js [![Awesome](https://cdn.rawgit.com/sindresorhus/awesome/d7305f38d29fed78fa85652e3a63e154dd8e8829/media/badge.svg)](https://github.com/sindresorhus/awesome)"],"sub_categories":["Libraries \u0026 Plugins"],"readme":"# vue-reload-route-data\nA small Vuejs mixin for reload route data manually. Mainly inspired by https://gist.github.com/fnlctrl/1cf9da63493e0fe78181a4f4e2cc6f64\n\n## How to install:\n### CommonJS:\n```\nnpm install --save vue-reload-route-data\n```\n\nAnd in your entry file:\n```\nimport Vue from 'vue'\nimport VueReloadRouteData from 'vue-reload-route-data'\n\nVue.use(VueReloadRouteData, {\n  immediate: true\n})\n\n`immediate` will be passed to 3rd param of `$watch` for `$route`\n```\n\n### Script:\nJust add 3 scripts in order: `vue`, `vue-reload-route-data` to your `document`.\n\n## How to use:\nSend all your code to load route data to `fetchRouteData`.\n```js\nexport default {\n  data() {\n    return {\n      data: {}\n    ]\n  },\n  \n  fetchRouteData() {\n    // Get your route data\n    \n    this.$set(this, 'data', someRouteData)\n  }\n}\n```\n\nAfter that, you can call `reloadRouteData` anytime you want to reload data.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fimcvampire%2Fvue-reload-route-data","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fimcvampire%2Fvue-reload-route-data","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fimcvampire%2Fvue-reload-route-data/lists"}