Skip to content

OnChangeTab callback in child? Is there a componentHasBeenFocused? #43

@saravanabalagi

Description

@saravanabalagi

I am able to use onChangeTab prop on the parent <ScrollableTabView> tag. But how do I execute some code inside the children that will fire when (and only when) the tab comes to focus?

Is there something like componentDidMount that will execute when tab is focused, in other words, a componentHasBeenFocused in the child? Or is there a workaround?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions