Skip to content

Conversation

LukasMirbt
Copy link
Contributor

@LukasMirbt LukasMirbt commented Aug 21, 2025

Configuring state restoration with go_router is quite tricky and there are several open issues related to state restoration.

This PR adds a section in the docs which clearly documents go_router state restoration as well as tests that verify the documented behavior.

Related issues: flutter/flutter#129165, flutter/flutter#117683

Pre-Review Checklist

If you need help, consider asking for advice on the #hackers-new channel on Discord.

Note: The Flutter team is currently trialing the use of Gemini Code Assist for GitHub. Comments from the gemini-code-assist bot should not be taken as authoritative feedback from the Flutter team. If you find its comments useful you can update your code accordingly, but if you are unsure or disagree with the feedback, please feel free to wait for a Flutter team member's review for guidance on which automated comments should be addressed.

Footnotes

  1. Regular contributors who have demonstrated familiarity with the repository guidelines only need to comment if the PR is not auto-exempted by repo tooling. 2 3

@LukasMirbt
Copy link
Contributor Author

@chunhtai Does the premise and approach of this PR make sense to you?

@chunhtai
Copy link
Contributor

I will take a closer look sometimes tmr

@LukasMirbt LukasMirbt force-pushed the go-router/state-restoration-docs branch from ea287b9 to 5284fa6 Compare August 22, 2025 00:11
@LukasMirbt LukasMirbt force-pushed the go-router/state-restoration-docs branch from 3074d34 to 840ebd8 Compare August 22, 2025 15:55
@LukasMirbt LukasMirbt changed the title [go_router]: Add documentation for state restoration [go_router]: Add state restoration topic to documentation Aug 22, 2025
@LukasMirbt LukasMirbt force-pushed the go-router/state-restoration-docs branch 6 times, most recently from 1a02f3c to 4f4a01d Compare August 22, 2025 18:15
@LukasMirbt LukasMirbt marked this pull request as ready for review August 22, 2025 18:29
@LukasMirbt LukasMirbt requested a review from chunhtai as a code owner August 22, 2025 18:29
@LukasMirbt LukasMirbt force-pushed the go-router/state-restoration-docs branch from 4f4a01d to a88e267 Compare August 22, 2025 20:54
Copy link
Contributor

@chunhtai chunhtai left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, This is great doc, thanks for adding this!

@LukasMirbt
Copy link
Contributor Author

LGTM, This is great doc, thanks for adding this!

Awesome! 🎉 Can it be auto-submitted or does it need a second review?

@LukasMirbt LukasMirbt force-pushed the go-router/state-restoration-docs branch 3 times, most recently from fd36961 to 6075554 Compare August 24, 2025 09:03
@LukasMirbt LukasMirbt changed the title [go_router]: Add state restoration topic to documentation [go_router] Add state restoration topic to documentation Aug 24, 2025
@LukasMirbt LukasMirbt force-pushed the go-router/state-restoration-docs branch from 6075554 to d876cfb Compare August 25, 2025 20:42
@LukasMirbt
Copy link
Contributor Author

@chunhtai Should @hannah-hyj be requested for review on this PR?

@LukasMirbt LukasMirbt force-pushed the go-router/state-restoration-docs branch from d876cfb to 57d0c64 Compare August 25, 2025 21:16
@chunhtai chunhtai requested a review from hannah-hyj August 25, 2025 22:32
@chunhtai
Copy link
Contributor

chunhtai commented Aug 25, 2025

I think we need two reviewer in order to merge

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants