I'm having trouble with re-rendering the table. When the components re-renders the resize bugs and set all columns to big numbers

Im the code above, I use a variable to control the table display, but when hidding and showing it the columns width gets really big. Debuging I saw that $columnWidths get's random numbers every time.
