Skip to content
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

ReduxDevToolsMiddleware: An exception occurred while dispatching a location changed event #446

Open
mohaaron opened this issue Aug 17, 2023 · 0 comments

Comments

@mohaaron
Copy link

I'm getting the following error in the Counter component after adding my state object to it. Any idea why? I've been receiving this error in another project as well and had to remove DevTools from the configuration to get rid of the error.

https://github.com/mohaaron/Syncfusion.Blazor.Demo/blob/trunk/BlazorSyncfusion.Demo/Pages/Counter.razor

fail: Microsoft.AspNetCore.Components.Server.Circuits.CircuitHost[219]
Location change to 'https://localhost:7081/counter' in circuit '_yK0X86L7bjCCtBD30RGdUhSceak5-gO6A2Yub-Ve5M' failed.
Microsoft.AspNetCore.Components.LocationChangeException: An exception occurred while dispatching a location changed event.
---> System.NullReferenceException: Object reference not set to an instance of an object.
at Fluxor.Blazor.Web.ReduxDevTools.ReduxDevToolsMiddleware.<>c.b__12_0(StackFrame x) in C:\Data\Mine\Code\Fluxor\Source\Lib\Fluxor.Blazor.Web.ReduxDevTools\ReduxDevToolsMiddleware.cs:line 65
at System.Linq.Enumerable.SelectArrayIterator2.MoveNext() at System.Linq.Enumerable.WhereEnumerableIterator1.MoveNext()
at System.Linq.Enumerable.EnumerablePartition1.MoveNext() at System.String.Join(String separator, IEnumerable1 values)
at Fluxor.Blazor.Web.ReduxDevTools.ReduxDevToolsMiddleware.AfterDispatch(Object action) in C:\Data\Mine\Code\Fluxor\Source\Lib\Fluxor.Blazor.Web.ReduxDevTools\ReduxDevToolsMiddleware.cs:line 61
at Fluxor.Store.<>c__DisplayClass38_0.b__0(IMiddleware x) in C:\Data\Mine\Code\Fluxor\Source\Lib\Fluxor\Store.cs:line 256
at System.Collections.Generic.List1.ForEach(Action1 action)
at Fluxor.Store.ExecuteMiddlewareAfterDispatch(Object actionJustDispatched) in C:\Data\Mine\Code\Fluxor\Source\Lib\Fluxor\Store.cs:line 256
at Fluxor.Store.DequeueActions() in C:\Data\Mine\Code\Fluxor\Source\Lib\Fluxor\Store.cs:line 294
at Fluxor.Store.ActionDispatched(Object sender, ActionDispatchedEventArgs e) in C:\Data\Mine\Code\Fluxor\Source\Lib\Fluxor\Store.cs:line 173
at Fluxor.Dispatcher.Dispatch(Object action) in C:\Data\Mine\Code\Fluxor\Source\Lib\Fluxor\Dispatcher.cs:line 47
at Fluxor.Blazor.Web.Middlewares.Routing.RoutingMiddleware.LocationChanged(Object sender, LocationChangedEventArgs e) in C:\Data\Mine\Code\Fluxor\Source\Lib\Fluxor.Blazor.Web\Middlewares\Routing\RoutingMiddleware.cs:line 49
at Microsoft.AspNetCore.Components.NavigationManager.NotifyLocationChanged(Boolean isInterceptedLink)
--- End of inner exception stack trace ---
at Microsoft.AspNetCore.Components.NavigationManager.NotifyLocationChanged(Boolean isInterceptedLink)
at Microsoft.AspNetCore.Components.Server.Circuits.CircuitHost.<>c__DisplayClass49_0.b__0()
at Microsoft.AspNetCore.Components.Rendering.RendererSynchronizationContext.<>c.b__8_0(Object state)
--- End of stack trace from previous location ---
at Microsoft.AspNetCore.Components.Server.Circuits.CircuitHost.OnLocationChangedAsync(String uri, String state, Boolean intercepted)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant