Is there a way to call a parent screen from child ...
# decompose
m
Is there a way to call a parent screen from child screen. I have a supplier list screen and from it I can navigate to create screen. I only want to reload supplier list state when I return back on a successful supplier creation only. Otherwise, state should be retained
a
I think, you can pass a callback to your Create screen, then call it when it's to go back, and pass a boolean result. Then in the parent, do
navigation.pop { ... }
and in that lambda call the list screen for refresh.