[SOLVED] Help! componentDidMount being called more than once for React Leaderboard

[SOLVED] Help! componentDidMount being called more than once for React Leaderboard
0.0 0

#1

I’m currently finishing up my leaderboard project and the only thing bugging me is that every time I try to sort the list by all time points, it re-renders the correct list initially, then suddenly calls componentDidMount again, resetting the state. Does anyone know why this is happening? Here is my pen: http://codepen.io/codeFuChivy/pen/ZBwZwO?editors=0010

Side note: I’m not 100 percent done with styling so it still looks a little rough.


#2

Make href="#" `````


#3

Wow it works! It was that simple…I had a feeling I was missing something in the href. Thanks a lot!