Committed by
GitHub
Merge pull request #1847 from zenalex/master
markAsDirty must use permenent property
Showing
1 changed file
with
1 additions
and
1 deletions
| @@ -239,7 +239,7 @@ class GetInstance { | @@ -239,7 +239,7 @@ class GetInstance { | ||
| 239 | final newKey = key ?? _getKey(S, tag); | 239 | final newKey = key ?? _getKey(S, tag); | 
| 240 | if (_singl.containsKey(newKey)) { | 240 | if (_singl.containsKey(newKey)) { | 
| 241 | final dep = _singl[newKey]; | 241 | final dep = _singl[newKey]; | 
| 242 | - if (dep != null) { | 242 | + if (dep != null && !dep.permanent) { | 
| 243 | dep.isDirty = true; | 243 | dep.isDirty = true; | 
| 244 | } | 244 | } | 
| 245 | } | 245 | } | 
- 
Please register or login to post a comment