# Flutter: preserve requirements through advanced agent edits - [Reject stale Flutter search results after a newer query or disposal](https://frameworkrecipes.dev/flutter/generation-safe-search/guide.md): mounted prevents state updates after disposal, but two requests can race while the widget remains mounted. A generation token identifies the current request and rejects an older result that completes later. - [search-generation-current rule pack](https://reporules.fyi/flutter/generation-safe-search/rule-pack.zip): YAML requirement and agent task. - [Cancel Flutter timers and streams when the screen is disposed](https://frameworkrecipes.dev/flutter/owned-subscription-disposal/guide.md): Checking mounted suppresses callbacks but does not release the resources producing them. Cancel the subscription and timer when the State owner ends so navigation does not accumulate hidden work. - [screen-disposes-owned-work rule pack](https://reporules.fyi/flutter/owned-subscription-disposal/rule-pack.zip): YAML requirement and agent task. - [Framework rule pack](https://reporules.fyi/flutter/rule-pack.zip): All requirements from this framework site.