On clicking any of the menu items in the sidebar, 'sidebar/SELECT' action is being triggered for all the menu items, ie, if there are 6 menu items in the sidebar, the action is triggered 6 times. This causes the state.sidebar.activemenu to be the last menu item, irrespective of what the actual selected item is..
help me out with this one.. I am new to React and Redux
On clicking any of the menu items in the sidebar, 'sidebar/SELECT' action is being triggered for all the menu items, ie, if there are 6 menu items in the sidebar, the action is triggered 6 times. This causes the state.sidebar.activemenu to be the last menu item, irrespective of what the actual selected item is..
help me out with this one.. I am new to React and Redux