bajcmartinez / chrome-react-seo-extension

The power of React and TypeScript for building interactive Chrome extensions
86 stars 65 forks source link

Never ending 'GET_DOM' message loop. #1

Open Deniall opened 3 years ago

Deniall commented 3 years ago

When the extension is opened, if you take a look at the DevTools console, you can see that the GET_DOM message is being triggered and sent many times per second, as long as the extension is open. I don't believe this is intended functionality.

willnotcy commented 2 years ago

This is fixed by overriding the dependency list for React.useEffect() React.useEffect(() => { ... }); => React.useEffect(() => { ... }, []);

Revolt9k commented 2 years ago

Spent 15 min handling this problem. Cant even think that could have so dumb default behaviour.