Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[rfw] Enable subscribing to the root of a DynamicContent #5848

Merged
merged 1 commit into from
Jan 30, 2024

Conversation

Hixie
Copy link
Contributor

@Hixie Hixie commented Jan 9, 2024

fixes flutter/flutter#141069

Pre-launch Checklist

  • I read the Contributor Guide and followed the process outlined there for submitting PRs.
  • I read the Tree Hygiene wiki page, which explains my responsibilities.
  • I read and followed the relevant style guides and ran the auto-formatter. (Unlike the flutter/flutter repo, the flutter/packages repo does use dart format.)
  • I signed the CLA.
  • The title of the PR starts with the name of the package surrounded by square brackets, e.g. [shared_preferences]
  • I listed at least one issue that this PR fixes in the description above.
  • I updated pubspec.yaml with an appropriate new version according to the pub versioning philosophy, or this PR is exempt from version changes.
  • I updated CHANGELOG.md to add a description of the change, following repository CHANGELOG style.
  • I updated/added relevant documentation (doc comments with ///).
  • I added new tests to check the change I am making, or this PR is test-exempt.
  • All existing and new tests are passing.

@Hixie
Copy link
Contributor Author

Hixie commented Jan 23, 2024

@johnmccutchan is this something you still need, or did you find another solution?

@johnmccutchan
Copy link
Contributor

This is no longer needed by my tool but it does seem like something that should be supported for consistency reasons.

@Hixie
Copy link
Contributor Author

Hixie commented Jan 26, 2024

Would you like to be the reviewer, since you have context? :-)

@johnmccutchan johnmccutchan self-requested a review January 26, 2024 01:59
@@ -12,6 +12,9 @@ import 'package:flutter/foundation.dart' show objectRuntimeType;
import '../dart/model.dart';

/// Signature for the callback passed to [DynamicContent.subscribe].
///
/// Do not modify the provided value (e.g. if it is a map or list). Doing so
Copy link
Contributor

Choose a reason for hiding this comment

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

Should you pass the map/list wrapped in an UnmodifiableFoo wrapper so that the user can't manipulate it?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I would if it was a free abstraction, but given that it's standard practice in Flutter to pass around lists and maps that aren't supposed to be modified, I don't see much point.

@Hixie Hixie added the autosubmit Merge PR when tree becomes green via auto submit App label Jan 30, 2024
@auto-submit auto-submit bot merged commit 5b48c44 into flutter:main Jan 30, 2024
78 checks passed
@Hixie Hixie deleted the watchroot branch January 30, 2024 23:17
engine-flutter-autoroll added a commit to engine-flutter-autoroll/flutter that referenced this pull request Jan 31, 2024
auto-submit bot pushed a commit to flutter/flutter that referenced this pull request Jan 31, 2024
flutter/packages@25abb5d...5b48c44

2024-01-30 ian@hixie.ch [rfw] Enable subscribing to the root of a DynamicContent (flutter/packages#5848)
2024-01-30 10687576+bparrishMines@users.noreply.github.com [pigeon] Adds ProxyApi to AST generation (flutter/packages#5861)
2024-01-30 stuartmorgan@google.com [tool] Exempt federated impl examples from CHANGELOG (flutter/packages#6018)
2024-01-30 engine-flutter-autoroll@skia.org Manual roll Flutter from 2f6fdf2 to ace9181 (57 revisions) (flutter/packages#6013)

If this roll has caused a breakage, revert this CL and stop the roller
using the controls here:
https://autoroll.skia.org/r/flutter-packages-flutter-autoroll
Please CC flutter-ecosystem@google.com,rmistry@google.com on the revert to ensure that a human
is aware of the problem.

To file a bug in Flutter: https://github.com/flutter/flutter/issues/new/choose

To report a problem with the AutoRoller itself, please file a bug:
https://issues.skia.org/issues/new?component=1389291&template=1850622

Documentation for the AutoRoller is here:
https://skia.googlesource.com/buildbot/+doc/main/autoroll/README.md
arc-yong pushed a commit to Arctuition/packages-arc that referenced this pull request Jun 14, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
autosubmit Merge PR when tree becomes green via auto submit App p: rfw Remote Flutter Widgets
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Expose way to observe root of DynamicContent
2 participants