I am using react hooks inside a chrome extension, but when I when updating the state, it is fired multiple times, its not happening when I just console log...