{"id":24909892,"url":"https://github.com/victorprocure/blazorstatemanagement","last_synced_at":"2026-04-22T16:32:49.854Z","repository":{"id":275218754,"uuid":"925442484","full_name":"victorprocure/BlazorStateManagement","owner":"victorprocure","description":"Simple Memory Efficient State Management for Blazor","archived":false,"fork":false,"pushed_at":"2025-01-31T23:16:29.000Z","size":208,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-01-31T23:25:16.452Z","etag":null,"topics":["blazor","memory-efficient","state-management"],"latest_commit_sha":null,"homepage":"","language":"C#","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/victorprocure.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,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2025-01-31T22:19:41.000Z","updated_at":"2025-01-31T23:16:32.000Z","dependencies_parsed_at":"2025-01-31T23:35:20.445Z","dependency_job_id":null,"html_url":"https://github.com/victorprocure/BlazorStateManagement","commit_stats":null,"previous_names":["victorprocure/blazorstatemanagement"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/victorprocure%2FBlazorStateManagement","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/victorprocure%2FBlazorStateManagement/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/victorprocure%2FBlazorStateManagement/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/victorprocure%2FBlazorStateManagement/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/victorprocure","download_url":"https://codeload.github.com/victorprocure/BlazorStateManagement/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245950814,"owners_count":20699143,"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":["blazor","memory-efficient","state-management"],"created_at":"2025-02-02T03:27:24.182Z","updated_at":"2026-04-22T16:32:44.833Z","avatar_url":"https://github.com/victorprocure.png","language":"C#","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Blazor State Management\n### Simple State Management for Blazor\n\n## Installation\nTODO: Create Nuget\n\n## Getting Started\nIn your `program.cs` file make sure to add `Services.AddStateManagement()`, there are several overloads available.\n\n*Note:* The event dispatcher takes advantage of Channels, which can have their capactity altered with a configuration variable called: `QueueCapacity` in your `appsettings.json` file. The default value is 100.\n\nYou may also extend/customize using the builder `Host.UseStateManagement()` which also must be added to `program.cs`\n\nThis should be enough get it up and running\n\n## Using\nAny component you wish to access a state must inherit from `StateComponent`, the applies all the needed state subscriptions to make it is updated.\n\nThen all that is necessary is to `@inject` or `[Inject]` an `IState\u003cT\u003e` service.\n\nIf you wish to change the state you can inject `IDispatcher` this will give you the option of changing the state both synchronously and asynchronously. With calls to : `Dispatch()` and `DispatchAsync()` respectively.\n\nYou may also subscribe to state changes with a custom handler in your component by calling `base.RegisterStateChangeCallback()` in your constructor. There is an overload to execute both synchronous and asynchronous callbacks\n\nThere is a Demo Blazor app that demonstrates several of these options.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvictorprocure%2Fblazorstatemanagement","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fvictorprocure%2Fblazorstatemanagement","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvictorprocure%2Fblazorstatemanagement/lists"}