currentActionResource

Returns the ActionResource of the currently visible screen, or null if the screen does not define one.

Can be called from any composable under a StoreProvider.

Example:

TopAppBar(
actions = {
currentActionResource()?.invoke()
}
)