@ctietze difficult to say without seeing the rest of it, but this setup definitely works: https://gist.github.com/phillipcaudell/6e2494aa7128997f9df2a4d58073aded
@ctietze I’ve noticed environment values stop being propagated in certain controls (usually Hosting/AnyView). Is the environment’s default handler being called instead of the one you’ve set? If so perhaps try explicitly setting the environment at each level to find where it breaks? Otherwise good old printChanges?
@phill Exactly this (thanks for taking the time to write the example) is the approach I have. But for some reason it works in isolation, but not when plugged into the real app.
There are module boundaries etc., and deep view hierarchies. So I wonder why it stops working.