-
-
Notifications
You must be signed in to change notification settings - Fork 149
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Getting DisposableCallback after app has been running for a while #491
Comments
Can you upload a full project to GitHub or somewhere, with instructions on how to reproduce? |
I added fluxor to one of my sideproject that can be found here Best way to repro that DisposableCallback is reloading data ( I added a button to do that so there is no need to jump between home and weather page). It occurs after around 5-15 reloads. Sometimes it also throws it while hot reloading from VS. Other way is just leave it running and it will come eventually (as this project isn't using so much memory it will take almost 2 hours, but on app that uses around 300-400MB of memory it comes around 20-30 minutes) |
Fixed, thank you. I will release shortly. |
Awesome! And thanks for resolving it so fast! |
Published, it should be available on NuGet soon. Using your code I added a forced GC.Collect after ReloadData and that reproduced the problem 100% of the time. As usual it was a case of a component descending from FluxorComponent not calling Base.DisposeAsync - but this time it was my fault :) |
Hey I'm getting DisposableCallback with Id ""StateSubscriber.Subscribe / Fluxor.Blazor.Web.StoreInitializer" on my project usually after ~20 mins. I did a little test and created a new Blazor project to reproduce that and got this same exception after ~130 mins (time difference probably is from difference in memory usage).
.NET 8 with Fluxor 6.0.0-Beta2
in Program.cs i have
builder.Services.AddFluxor(options => { options.ScanAssemblies(typeof(Program).Assembly); options.UseReduxDevTools(); });
and added
<Fluxor.Blazor.Web.StoreInitializer />
in top of Routes.razorI tried to recreate how I use Fluxor in my project as close as possible in Counter.razor except in my project I use effects to make api calls
also the state and reducer are as follows
I'm new to using Fluxor and Blazor so I don't know if I'm doing something wrong or does this has something to do with automatic GC maybe?
edit. I have also set rendermode to InteractiveServer
The text was updated successfully, but these errors were encountered: