Open TarasBanakh opened 7 years ago
This is expected. Unlike the Redux template, the Angular app doesn't have an automatic way to transfer state from server to client.
any help for this? I get initial data twice, does anyone know if this happens only in development and not in production ?, it's a serious problem :(
Installed product versions
Description
In ASP.NET Core Angular 2 template the Web API server method WeatherForecasts called twice on browser refresh (F5) of 'http://localhost:5000/fetch-data' page.
Steps to recreate
Current behavior
You will notice that WeatherForecasts is called twice: once on the server during server-side prerendering and once from the browser's javascript after the page has being loaded.
Expected behavior
It should be only called once during server-side prerendering.