Fluxor
Fluxor copied to clipboard
Can't locate issue
I have been trying all day to figure out where this Fluxor error is coming from. Any help would be greatly appreciated.
[2023-09-21T20:01:27.518Z] Error: System.AggregateException: One or more errors occurred. (Value cannot be null. (Parameter 'source')) ---> System.ArgumentNullException: Value cannot be null. (Parameter 'source') at Fluxor.Blazor.Web.StoreInitializer.OnAfterRender(Boolean firstRender) in C:\Data\Mine\Code\Fluxor\Source\Lib\Fluxor.Blazor.Web\StoreInitializer.cs:line 57 at Microsoft.AspNetCore.Components.ComponentBase.Microsoft.AspNetCore.Components.IHandleAfterRender.OnAfterRenderAsync() at Microsoft.AspNetCore.Components.Rendering.ComponentState.NotifyRenderCompletedAsync() --- End of inner exception stack trace ---
Try setting this attribute on StoreInitializer
to catch unhandled exceptions.
https://github.com/mrpmorris/Fluxor/blob/master/Source/Lib/Fluxor.Blazor.Web/StoreInitializer.cs#L17
I'll close this. Please let me know if I need to reopen it.
I have been trying all day to figure out where this Fluxor error is coming from. Any help would be greatly appreciated.
[2023-09-21T20:01:27.518Z] Error: System.AggregateException: One or more errors occurred. (Value cannot be null. (Parameter 'source')) ---> System.ArgumentNullException: Value cannot be null. (Parameter 'source') at Fluxor.Blazor.Web.StoreInitializer.OnAfterRender(Boolean firstRender) in C:\Data\Mine\Code\Fluxor\Source\Lib\Fluxor.Blazor.Web\StoreInitializer.cs:line 57 at Microsoft.AspNetCore.Components.ComponentBase.Microsoft.AspNetCore.Components.IHandleAfterRender.OnAfterRenderAsync() at Microsoft.AspNetCore.Components.Rendering.ComponentState.NotifyRenderCompletedAsync() --- End of inner exception stack trace ---
I am getting the same error. Could you solve it? Thank you!
Can you paste the stack trace in the exception please?
Hi, yes, here's mine:
blazor.web.js:1 [2024-04-14T16:38:34.414Z] Error: System.AggregateException: One or more errors occurred. (Nullable object must have a value.) ---> System.InvalidOperationException: Nullable object must have a value. at Fluxor.Blazor.Web.StoreInitializer.OnAfterRender(Boolean firstRender) in C:\Data\Mine\Code\Fluxor\Source\Lib\Fluxor.Blazor.Web\StoreInitializer.cs:line 57 at Microsoft.AspNetCore.Components.ComponentBase.Microsoft.AspNetCore.Components.IHandleAfterRender.OnAfterRenderAsync() at Microsoft.AspNetCore.Components.Rendering.ComponentState.NotifyRenderCompletedAsync() --- End of inner exception stack trace ---
Thank you
It seems that the issue was on our end. We were trying to access a variable when it wasn't loaded yet. Thank you