You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I tried using fluxor in a blazor 8 template app and my ReducerMethod aren't being called. I replaced the 'Counter' with a Fluxor State.
I added <Fluxor.Blazor.Web.StoreInitializer /> to the top of the Routes.razor files and I added <script src="_content/Fluxor.Blazor.Web/scripts/index.js"></script> to the App.razor file.
I added Fluxor to my services like this on the server
I recently ran into a similar issue and found that multiple calls to AddFluxor seem to overwrite each other's features. I'm not sure if the overwriting is by design.
That is, it might be a solution for you by using just one call to AddFluxor like so:
builder.Services.AddFluxor(options => options.ScanAssemblies(typeof(Program).Assembly,typeof(Client._Imports).Assembly));// or
builder.Services.AddFluxor(options =>{ options.ScanAssemblies(typeof(Program).Assembly); options.ScanAssemblies(typeof(Client._Imports).Assembly);});
I tried using fluxor in a blazor 8 template app and my
ReducerMethod
aren't being called. I replaced the 'Counter' with a Fluxor State.I added
<Fluxor.Blazor.Web.StoreInitializer />
to the top of the Routes.razor files and I added<script src="_content/Fluxor.Blazor.Web/scripts/index.js"></script>
to the App.razor file.I added Fluxor to my services like this on the server
and like this on the client:
The component in question has
@inherits Fluxor.Blazor.Web.Components.FluxorComponent
- its the Counter component in the client project.Is there something else I need to do? Here is a repo with my sln: https://github.com/zeus82/FluxorAsp8
The text was updated successfully, but these errors were encountered: