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
Right now the entity repository is an operation initializer. The issue with this is that dispatching commands require an entity repository and if a global initializer requires dispatching a command the entity repository wouldn't be setup. The fix is to make entity repository a global initializer and have a separate operation initializer to INJECT the entity repository into the command based on the schema configuration
Create global initializer that loops through the schemas and registers with container
Update operation initializer to only inject the configured entity repository
The text was updated successfully, but these errors were encountered:
* Setup new global initializer
* Removed unused variable "schema" as it doesn't seem to be used and caused a shadow declaration
* Updated operation initializer to inject registered schema and add to context
Right now the entity repository is an operation initializer. The issue with this is that dispatching commands require an entity repository and if a global initializer requires dispatching a command the entity repository wouldn't be setup. The fix is to make entity repository a global initializer and have a separate operation initializer to INJECT the entity repository into the command based on the schema configuration
The text was updated successfully, but these errors were encountered: