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
When the dependency is not required you have to pass a default otherwise it will error out, which proved to be non-optimal when dependencies are so not required there is even no default implementation.
The correct way to handle this seems to be the following:
When dependency is required - you have to pass it, if there is no default - it will error out
When the dependency is not required - if it's not passed and there is no default just evaluate the variable to nil
That way we can have it more flexible.
The text was updated successfully, but these errors were encountered:
Currently the approach for defining the dependency is not very comfortable when defining a not required dependency.
When the dependency is not required you have to pass a default otherwise it will error out, which proved to be non-optimal when dependencies are so not required there is even no default implementation.
The correct way to handle this seems to be the following:
nil
That way we can have it more flexible.
The text was updated successfully, but these errors were encountered: