states_rebuilder icon indicating copy to clipboard operation
states_rebuilder copied to clipboard

fix: autoDisposeWhenNotUsed not working

Open KKranjcevic opened this issue 2 years ago • 2 comments

The Injected is always disposed since the new 6.0 version

KKranjcevic avatar Sep 17 '22 06:09 KKranjcevic

Codecov Report

Merging #277 (4a7770c) into master (e2828f4) will decrease coverage by 0.00%. The diff coverage is 100.00%.

@@            Coverage Diff             @@
##           master     #277      +/-   ##
==========================================
- Coverage   96.31%   96.30%   -0.01%     
==========================================
  Files          66       66              
  Lines        4969     4957      -12     
==========================================
- Hits         4786     4774      -12     
  Misses        183      183              
Impacted Files Coverage Δ
..._management/reactive_model/reactive_model_imp.dart 97.08% <100.00%> (ø)
...cr/state_management/reactive_model/snap_state.dart 90.00% <0.00%> (-0.11%) :arrow_down:
...njected/undo_redo_persist_state/persist_state.dart 92.04% <0.00%> (-0.09%) :arrow_down:
...do_redo_persist_state/undo_redo_persist_state.dart 96.87% <0.00%> (-0.05%) :arrow_down:
...te_management/legacy/state_with_mixin_builder.dart 97.29% <0.00%> (-0.04%) :arrow_down:
...ent_booster/injected_form_field/injected_form.dart 98.79% <0.00%> (-0.02%) :arrow_down:
...lib/scr/navigation/navigator2/router_delegate.dart 96.50% <0.00%> (ø)
...velopment_booster/injected_crud/injected_crud.dart 100.00% <0.00%> (ø)
...nagement/reactive_model/injected/injected_imp.dart 95.43% <0.00%> (ø)
... and 3 more

:mega: We’re building smart automated test selection to slash your CI/CD build times. Learn more

codecov[bot] avatar Sep 21 '22 16:09 codecov[bot]

@GIfatahTH in versions 6+ when autoDisposeWhenNotUsed: false is used ( not using states_rebuilder navigation) (in tabs and BottomNavigationBar) the Inject is always disposed. In previus version (5.2) it works as it should.

KKranjcevic avatar Sep 22 '22 06:09 KKranjcevic

Merged in #273 pull request

GIfatahTH avatar Dec 25 '22 08:12 GIfatahTH