FWIW, the patch in #24 worked perfectly.
joelstein β created an issue.
I could use this, as well. We use state in several ways, and some of our render arrays depend on these state variables.
However, the patch in #11 (with Drupal 10.2) throws this error when rebuilding the cache:
> Constructing service "cache_tags.invalidator" from a parent definition is not supported at build time.
I have a use case that the patches in #95 and #101 don't resolve.
For example, I'd like to ignore the site name in language collections.
I expected something like this to work:
- language.*|system.site:name
(doesn't work)
FYI:
- language.*|system.site
(works, but it ignores too much)
- language.*|system.site.*
(doesn't work, though the help text added in #95 suggests it should)
Rerolling the patch.