{"action":"created","issue":{"url":"https://api.github.com/repos/aspnet/Blazor/issues/1573","repository_url":"https://api.github.com/repos/aspnet/Blazor","labels_url":"https://api.github.com/repos/aspnet/Blazor/issues/1573/labels{/name}","comments_url":"https://api.github.com/repos/aspnet/Blazor/issues/1573/comments","events_url":"https://api.github.com/repos/aspnet/Blazor/issues/1573/events","html_url":"https://github.com/aspnet/Blazor/issues/1573","id":370810275,"node_id":"MDU6SXNzdWUzNzA4MTAyNzU=","number":1573,"title":"Blazor Server side, child component not always updates view","user":{"login":"Knudel","id":15714185,"node_id":"MDQ6VXNlcjE1NzE0MTg1","avatar_url":"https://avatars0.githubusercontent.com/u/15714185?v=4","gravatar_id":"","url":"https://api.github.com/users/Knudel","html_url":"https://github.com/Knudel","followers_url":"https://api.github.com/users/Knudel/followers","following_url":"https://api.github.com/users/Knudel/following{/other_user}","gists_url":"https://api.github.com/users/Knudel/gists{/gist_id}","starred_url":"https://api.github.com/users/Knudel/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Knudel/subscriptions","organizations_url":"https://api.github.com/users/Knudel/orgs","repos_url":"https://api.github.com/users/Knudel/repos","events_url":"https://api.github.com/users/Knudel/events{/privacy}","received_events_url":"https://api.github.com/users/Knudel/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2018-10-16T21:36:47Z","updated_at":"2018-10-18T12:47:06Z","closed_at":null,"author_association":"NONE","body":"I notices that a child component that used async entityframework not always got updated. So I tried to simulate the situation without Entity framework. \r\n\r\nI created a child component with this code:\r\n\r\n```\r\n@if(list == null)\r\n{\r\n    <div>\r\n        Loading....\r\n    </div>\r\n}\r\nelse\r\n{\r\n    foreach(var i in list)\r\n    {\r\n        <div>\r\n            @i\r\n        </div>\r\n    }\r\n}\r\n\r\n@functions\r\n{\r\n    protected List<string> list = null;\r\n\r\n    protected override async Task OnInitAsync()\r\n    {\r\n        await Task.Run(async () =>\r\n        {\r\n            await Task.Delay(3000);\r\n\r\n            list = new List<string>();\r\n          \r\n            list.Add(\"Some item 1\");\r\n            list.Add(\"Some item 2\");\r\n            list.Add(\"Some item 3\");\r\n            list.Add(\"Some item 4\");\r\n        });\r\n\r\n        this.StateHasChanged();\r\n    }\r\n}\r\n```\r\n\r\nIn de main page: index.cshtml insert A few child components like:\r\n\r\n```\r\n<Child></Child>\r\n<Child></Child>\r\n<Child></Child>\r\n<Child></Child>\r\n```\r\n\r\nOpen debugging with f5.\r\nWhen the page has been loaded in chrome, reload with f5.\r\n\r\nAfter a few time, a few components won't show but keep saying: loading....\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/aspnet/Blazor/issues/comments/430994936","html_url":"https://github.com/aspnet/Blazor/issues/1573#issuecomment-430994936","issue_url":"https://api.github.com/repos/aspnet/Blazor/issues/1573","id":430994936,"node_id":"MDEyOklzc3VlQ29tbWVudDQzMDk5NDkzNg==","user":{"login":"Knudel","id":15714185,"node_id":"MDQ6VXNlcjE1NzE0MTg1","avatar_url":"https://avatars0.githubusercontent.com/u/15714185?v=4","gravatar_id":"","url":"https://api.github.com/users/Knudel","html_url":"https://github.com/Knudel","followers_url":"https://api.github.com/users/Knudel/followers","following_url":"https://api.github.com/users/Knudel/following{/other_user}","gists_url":"https://api.github.com/users/Knudel/gists{/gist_id}","starred_url":"https://api.github.com/users/Knudel/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Knudel/subscriptions","organizations_url":"https://api.github.com/users/Knudel/orgs","repos_url":"https://api.github.com/users/Knudel/repos","events_url":"https://api.github.com/users/Knudel/events{/privacy}","received_events_url":"https://api.github.com/users/Knudel/received_events","type":"User","site_admin":false},"created_at":"2018-10-18T12:47:06Z","updated_at":"2018-10-18T12:47:06Z","author_association":"NONE","body":"@cores-system I agree, but this doesn't help. My original code was a connection to a aql server with .net Entitycore. There I did call Statehaschanged().  I updated my code with StateHasChanges but it doesn't change.\r\n\r\nThank you for your help..\r\n\r\n"}}
{"actor":{"display_login":"Knudel"}}