You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am rendering multiple components in different react-tabs but whenever I switch between those tabs my components gets re-render. Is there anyway to stop this re-rendering on switching tabs?
The point of the forceRenderTabPanel feature is to enable you to determine when to display which panel. Note that you can also set forceRender on a per tab basis. Then it's up to you to hide and show the tab at the appropriate time, usually by applying styling rules (either directly or by e.g. toggling a CSS class) from within in the onSelect callback.
Also note that even forceRendered panels will receive the selectedTabPanelClassName.
I am rendering multiple components in different react-tabs but whenever I switch between those tabs my components gets re-render. Is there anyway to stop this re-rendering on switching tabs?