I am using Redux with Class Components in React. Having the below two states in Redux store.
{ spinner: false, refresh: false }
In Parent C
In my case I had missed the arrow function ()=>{}
()=>{}
Instead of onDismiss={()=>{/*do something*/}}
onDismiss={()=>{/*do something*/}}
I had it as onDismiss={/*do something*/}
onDismiss={/*do something*/}