79539020

Date: 2025-03-27 13:32:17
Score: 1
Natty:
Report link

The issue happens because the root component is wrapped with <React.StrictMode> which mounts twice in development mode. This leads to double fetching of the default API category.

const root = ReactDOM.createRoot(document.getElementById('root'));
root.render(
  <React.StrictMode>
    <Provider store={store}>
      <App />
    </Provider>
  </React.StrictMode>
);
Reasons:
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Low reputation (1):
Posted by: Jaymode