{"id":18317915,"url":"https://github.com/idiocc/hot-reload","last_synced_at":"2025-10-08T08:50:31.659Z","repository":{"id":57117953,"uuid":"246764679","full_name":"idiocc/hot-reload","owner":"idiocc","description":"Dummy Code For Hot-Reload Compilation.","archived":false,"fork":false,"pushed_at":"2020-03-12T07:18:20.000Z","size":62,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"master","last_synced_at":"2025-03-15T09:34:08.326Z","etag":null,"topics":["frontend","hot-reload","idio","web"],"latest_commit_sha":null,"homepage":"https://www.idio.cc","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"agpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/idiocc.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2020-03-12T06:57:01.000Z","updated_at":"2020-03-12T07:18:22.000Z","dependencies_parsed_at":"2022-08-23T06:01:16.927Z","dependency_job_id":null,"html_url":"https://github.com/idiocc/hot-reload","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":"mnpjs/package","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/idiocc%2Fhot-reload","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/idiocc%2Fhot-reload/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/idiocc%2Fhot-reload/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/idiocc%2Fhot-reload/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/idiocc","download_url":"https://codeload.github.com/idiocc/hot-reload/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248054218,"owners_count":21039951,"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":["frontend","hot-reload","idio","web"],"created_at":"2024-11-05T18:07:51.243Z","updated_at":"2025-10-08T08:50:26.623Z","avatar_url":"https://github.com/idiocc.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# @idio/hot-reload\n\n[![npm version](https://badge.fury.io/js/%40idio%2Fhot-reload.svg)](https://www.npmjs.com/package/@idio/hot-reload)\n\n`@idio/hot-reload` is Dummy Code For Hot-Reload Compilation.\n\n```sh\nyarn add @idio/hot-reload\n```\n\n## Table Of Contents\n\n- [Table Of Contents](#table-of-contents)\n- [API](#api)\n- [`hotReload(callback): void`](#hotreloadcallback-function-void)\n- [Copyright \u0026 License](#copyright--license)\n\n\u003cp align=\"center\"\u003e\u003ca href=\"#table-of-contents\"\u003e\n  \u003cimg src=\"/.documentary/section-breaks/0.svg?sanitize=true\"\u003e\n\u003c/a\u003e\u003c/p\u003e\n\n## API\n\nThe package is available by importing its default function:\n\n```js\nimport hotReload from '@idio/hot-reload'\n```\n\n\u003cp align=\"center\"\u003e\u003ca href=\"#table-of-contents\"\u003e\n  \u003cimg src=\"/.documentary/section-breaks/1.svg?sanitize=true\"\u003e\n\u003c/a\u003e\u003c/p\u003e\n\n## \u003ccode\u003e\u003cins\u003ehotReload\u003c/ins\u003e(\u003c/code\u003e\u003csub\u003e\u003cbr/\u003e\u0026nbsp;\u0026nbsp;`callback: function(),`\u003cbr/\u003e\u003c/sub\u003e\u003ccode\u003e): \u003ci\u003evoid\u003c/i\u003e\u003c/code\u003e\nThe re-rendering function to execute after an update to\nany of the files is made.\n\n - \u003ckbd\u003e\u003cstrong\u003ecallback*\u003c/strong\u003e\u003c/kbd\u003e \u003cem\u003e`function()`\u003c/em\u003e: The callback.\n\n```js\n/*\n * This file should only be used for compilation with Depack. The\n * `@idio/frontend` middleware is supposed to override `@idio/hot-reload`\n * import into `/hot-reload` path automatically, without the need for\n * the code from this package.\n */\n\n/**\n * Registers hot-reload callback to rerender apps.\n * @param {!Function} cb\n */\nexport default function addHotReload(cb) {}\n```\n\nThis package is meant to be installed when building bundles that use hot-reload from [`@idio/front-end`](https://github.com/idiocc/frontend) middleware. The middleware will serve its proper version of source code needed for hot-reload, but `@idio/hot-reload` is needed when it comes to compiling apps.\n\n\u003cp align=\"center\"\u003e\u003ca href=\"#table-of-contents\"\u003e\n  \u003cimg src=\"/.documentary/section-breaks/2.svg?sanitize=true\"\u003e\n\u003c/a\u003e\u003c/p\u003e\n\n## Copyright \u0026 License\n\nGNU Affero General Public License v3.0\n\n\u003ctable\u003e\n  \u003ctr\u003e\n    \u003ctd\u003e\u003cimg src=\"https://avatars1.githubusercontent.com/u/40834161?v=4\u0026amp;s=100\" alt=\"idiocc\"\u003e\u003c/td\u003e\n    \u003ctd\u003e© \u003ca href=\"https://www.idio.cc\"\u003eIdio\u003c/a\u003e 2020\u003c/td\u003e\n  \u003c/tr\u003e\n\u003c/table\u003e\n\n\u003cp align=\"center\"\u003e\u003ca href=\"#table-of-contents\"\u003e\n  \u003cimg src=\"/.documentary/section-breaks/-1.svg?sanitize=true\"\u003e\n\u003c/a\u003e\u003c/p\u003e","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fidiocc%2Fhot-reload","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fidiocc%2Fhot-reload","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fidiocc%2Fhot-reload/lists"}