Closed afmuller closed 8 months ago
Hi
I found my problem!
I was missing the StoreInitializer in the Routes.razor file.
<Fluxor.Blazor.Web.StoreInitializer />
<Router AppAssembly="@typeof(Program).Assembly">
<Found Context="routeData">
<RouteView RouteData="@routeData" DefaultLayout="@typeof(Layout.MainLayout)" />
<FocusOnNavigate RouteData="@routeData" Selector="h1" />
</Found>
</Router>
Hi
I've set up a Blazor app on the latest preview of .NET 8 (RC2). I get no errors in the logs, but the Fluxor dispatcher does not dispatch anything. Also, Redux Dev Tools plugin does not detect the app.
I've created a quick project to demo the problem. Full source code at: https://github.com/afmuller/FluxorTestAspNet8
Program.cs:
If you click on the 'Send Message to Console via Fluxor', nothing happens.![image](https://github.com/mrpmorris/Fluxor/assets/15875383/0c2c04cd-4f43-46c0-8b36-6cfc6ccb64b1)
Fluxor state etc below: