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 a ViewModel with a @ScopeProvider annotation is not injected into it's View, the annotation is not considered for scope creation.
See the following example:
This configuration should work. Instead, trying to load ParentView results in an Exception telling you that no provider for MyScope was found. As a workaround you have to adjust ParentView like this:
This prevents the exception. The reason for this is that durring the loading process the scopeProvider annotation isn't considered because the ViewModel is not used in the View. This is a bug. It shouldn't be neccessary to inject the ViewModel instance into the View to make scopes work.
The text was updated successfully, but these errors were encountered:
When a ViewModel with a
@ScopeProvider
annotation is not injected into it's View, the annotation is not considered for scope creation.See the following example:
This configuration should work. Instead, trying to load
ParentView
results in an Exception telling you that no provider forMyScope
was found. As a workaround you have to adjustParentView
like this:This prevents the exception. The reason for this is that durring the loading process the scopeProvider annotation isn't considered because the ViewModel is not used in the View. This is a bug. It shouldn't be neccessary to inject the ViewModel instance into the View to make scopes work.
The text was updated successfully, but these errors were encountered: