csells / go_router

The purpose of the go_router for Flutter is to use declarative routes to reduce complexity, regardless of the platform you're targeting (mobile, web, desktop), handling deep linking from Android, iOS and the web while still allowing an easy-to-use developer experience.
https://gorouter.dev
442 stars 96 forks source link

State restoration: Add restorationScopeId to Navigator() #100

Closed andyduke closed 2 years ago

andyduke commented 2 years ago

Without setting restorationScopeId in the Navigator, the restoration of the state of the routes will not work: when using RestorationMixin in widgets inside the route, the restoration of the state of the restorable properties will not occur.

codecov-commenter commented 2 years ago

Codecov Report

Merging #100 (08a2f96) into master (790c100) will decrease coverage by 0.17%. The diff coverage is 0.00%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master     #100      +/-   ##
==========================================
- Coverage   67.62%   67.44%   -0.18%     
==========================================
  Files           3        3              
  Lines         383      384       +1     
==========================================
  Hits          259      259              
- Misses        124      125       +1     
Impacted Files Coverage Δ
lib/go_router.dart 45.09% <ø> (ø)
lib/src/go_router_impl.dart 75.80% <0.00%> (-0.28%) :arrow_down:

Continue to review full report at Codecov.

Legend - Click here to learn more Δ = absolute <relative> (impact), ø = not affected, ? = missing data Powered by Codecov. Last update 790c100...08a2f96. Read the comment docs.