{"id":13661156,"url":"https://github.com/CodeSequence/ngrx-store-hmr","last_synced_at":"2025-04-24T23:31:56.032Z","repository":{"id":43563968,"uuid":"54389980","full_name":"CodeSequence/ngrx-store-hmr","owner":"CodeSequence","description":"Experimental HMR support for @ngrx/store","archived":true,"fork":false,"pushed_at":"2016-06-17T15:23:22.000Z","size":5,"stargazers_count":20,"open_issues_count":2,"forks_count":4,"subscribers_count":7,"default_branch":"master","last_synced_at":"2024-11-10T15:45:37.907Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"TypeScript","has_issues":false,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/CodeSequence.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2016-03-21T13:12:54.000Z","updated_at":"2023-01-28T02:45:23.000Z","dependencies_parsed_at":"2022-08-31T15:41:45.888Z","dependency_job_id":null,"html_url":"https://github.com/CodeSequence/ngrx-store-hmr","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/CodeSequence%2Fngrx-store-hmr","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/CodeSequence%2Fngrx-store-hmr/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/CodeSequence%2Fngrx-store-hmr/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/CodeSequence%2Fngrx-store-hmr/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/CodeSequence","download_url":"https://codeload.github.com/CodeSequence/ngrx-store-hmr/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":250727705,"owners_count":21477353,"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-08-02T05:01:30.438Z","updated_at":"2025-04-24T23:31:51.024Z","avatar_url":"https://github.com/CodeSequence.png","language":"TypeScript","funding_links":[],"categories":["TypeScript"],"sub_categories":[],"readme":"# @ngrx/store HMR\nExperimental HMR support for [@ngrx/store](https://github.com/ngrx/store) based on [angular2-hmr](https://github.com/gdi2290/angular2-hmr)\n\n\n## Setup\nFirst install the library:\n```\nnpm install ngrx-store-hmr --save-dev\n```\n\nIn order for your application to have HMR support, you need to wrap your bootstrap call in a function that receives an optional HMR state object:\n\n```ts\nimport { provideStore } from '@ngrx/store';\nimport { hotModuleReplacement } from 'ngrx-store-hmr';\nimport { reducer } from './reducer';\n\n// Wrap bootstrap in a function that accept an optional hmrState\nfunction main(hmrState?: any) {\n  return bootstrapp(App, [\n    provideStore(reducer, hmrState)\n  ]);\n}\n\nif(module.hot) {\n  hotModuleReplacement(main, module);\n}\nelse {\n  document.addEventListener('DOMContentLoaded', () =\u003e main);\n}\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FCodeSequence%2Fngrx-store-hmr","html_url":"https://awesome.ecosyste.ms/projects/github.com%2FCodeSequence%2Fngrx-store-hmr","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FCodeSequence%2Fngrx-store-hmr/lists"}