When using Universal Router with React Starter Kit, any API requests using either fetch or Axios (for example in routes/home/index.js) will call the API endpoint twice.
Any idea why?
Update March 25:
The double call only happens when server-side rendering is called. Accessing the route client-side triggers a single API request.
Hi,
When using Universal Router with React Starter Kit, any API requests using either fetch or Axios (for example in
routes/home/index.js
) will call the API endpoint twice.Any idea why?
Update March 25: The double call only happens when server-side rendering is called. Accessing the route client-side triggers a single API request.