Having a parent cause an action in a child component

Actions & Logic

I have an embarrassingly simple question but I've searched a while and can't find a Flutterflow way of doing it.

I have a parent page and two child components. There is a change in one child component and I execute a call back to the page when then updates a page state and reloads the Page. In the other component I am doing a database query and I want this update to trigger refresh of the dB. I can "Rebuild All/Current Page(s)" and I see that the component parameter change (through a text display) makes it to the component. But I can't figure out how to trigger a dB refresh from above. I can create a button on my component with the dB and force a refresh so I know dB refresh works.

If I could have an action in the component trigger from a change/set in the component parameter happen, I'd be good but it's seemingly not possible. I've been searching for about 3 hours how to do it and I just can't figure it out. I keep finding ways to trigger (through a callback/action) going "UP" in the widget tree but no way to go down.

I can think of work-arounds using custom code or making a dummy column in my dB trigger a real-time update that I've set a custom action block to subscribe to, but there must be a simple FlutterFlow way to do this that I'm missing.

What have you tried so far?
  1. Rebuild pages triggered from call back in parent page (but does not refresh component dB)

  2. dB refresh works if triggered from other sources

  3. Attempt to set-up a Conditional Action with toggle input as a trigger

Did you check FlutterFlow's Documentation for this topic?
Yes
4
7 replies