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
Let's say you want to be sure that each time you enter a specific section of your app, that you start a new clean session.
So before you start a new one you wanna check the current scope, to know if it is nesscacy to pop.
Right now something like that:
Future<void> startSession() async {
final sessionScopeName ='sesstionScopeName';
if(getIt.currentScopeName == sessionScopeName) { <--NewFeatureawait geit.popScope();// to be sure that the old session gets removed
}
awaitpushNewScope(scopeName: sessionScopeName);
}
is not possible and because of the issue #152 you can not relay on any exception. The only way I found was to add ah dummy scope which can be pop without any issue.
So it would be nice to have the option to request the current scope. Or do I overlook something?
The text was updated successfully, but these errors were encountered:
I thinks that's an absolute reasonable request. But probably it will be added to the null save version.
In general I would feel quite uncomfortable when I had to check if my app is in a certain state.
If you have to I'm not sure if your app logic is really save.
Let's say you want to be sure that each time you enter a specific section of your app, that you start a new clean session.
So before you start a new one you wanna check the current scope, to know if it is nesscacy to pop.
Right now something like that:
is not possible and because of the issue #152 you can not relay on any exception. The only way I found was to add ah dummy scope which can be pop without any issue.
So it would be nice to have the option to request the current scope. Or do I overlook something?
The text was updated successfully, but these errors were encountered: