When dispatching an action from App.Razor without injecting IStore the action will be broadcast from IDispatcher to observers before the store has been created to subscribe and react.
Although this approach should ideally be implemented as an [Effect] for StoreInitializedAction it is still not right that these actions silently disappear.
Suggestion: Throw an InvalidOperationException if IDispatcher.Dispatch is executed when there are no subscribers, with a message telling the user they should not dispatch actions before the store has been initialised.
When dispatching an action from App.Razor without injecting IStore the action will be broadcast from IDispatcher to observers before the store has been created to subscribe and react.
Although this approach should ideally be implemented as an
[Effect]
forStoreInitializedAction
it is still not right that these actions silently disappear.Suggestion: Throw an InvalidOperationException if IDispatcher.Dispatch is executed when there are no subscribers, with a message telling the user they should not dispatch actions before the store has been initialised.
Changes should be based on branch
release/5.4