I know its not kosher Compose, but I need a childs modifier, to change a parents background all the way to the top of the tree without making any changes to the parents via code. is that possible? I’ve been looking at the Modifier node stuff and it seems like the answer is in there somewhere
Rather than letting a child modify its parents state, can you hoist the background as a state into the lowest-shared component? This would let you keep state flowing down the Compose hierarchy, and you'd use events to propagate changes in the background up the chain
g
ghosalmartin
02/26/2025, 5:38 PM
Unfortunately it goes against the requirements so I can’t filter anything down. I could maybe use LocalComposition to provide the colour to places which would avoid that direct tying but ive a feeling its not whats expected