PedroBern / react-native-collapsible-tab-view

A cross-platform Collapsible Tab View component for React Native
MIT License
875 stars 171 forks source link

dependencies not updated when firing onTabChange #161

Closed xyxc0673 closed 3 years ago

xyxc0673 commented 3 years ago

Hi guys , thanks for the great package.

I have a problem.

code like these:

const handleTabChange = (homeTopicMap: any, tabName: string) => {
  if (!homeTopicMap[tabName]) {
    dispatch(fetchTopicByTab({ tab: tabName as string, refresh: false }));
  }
};

the verb homeTopicMap was not updated when redux state has been updated.

how do I make it work with the homeTopicMap?

andreialecu commented 3 years ago

Sorry, but this question is quite generic and doesn't seem about react-native-collapsible-tab-view so I'm not sure how to help here.