{"action":"created","issue":{"url":"https://api.github.com/repos/ampproject/amphtml/issues/19615","repository_url":"https://api.github.com/repos/ampproject/amphtml","labels_url":"https://api.github.com/repos/ampproject/amphtml/issues/19615/labels{/name}","comments_url":"https://api.github.com/repos/ampproject/amphtml/issues/19615/comments","events_url":"https://api.github.com/repos/ampproject/amphtml/issues/19615/events","html_url":"https://github.com/ampproject/amphtml/issues/19615","id":387171241,"node_id":"MDU6SXNzdWUzODcxNzEyNDE=","number":19615,"title":"setState is not working in Server after refreshing the page","user":{"login":"riham13","id":5393773,"node_id":"MDQ6VXNlcjUzOTM3NzM=","avatar_url":"https://avatars0.githubusercontent.com/u/5393773?v=4","gravatar_id":"","url":"https://api.github.com/users/riham13","html_url":"https://github.com/riham13","followers_url":"https://api.github.com/users/riham13/followers","following_url":"https://api.github.com/users/riham13/following{/other_user}","gists_url":"https://api.github.com/users/riham13/gists{/gist_id}","starred_url":"https://api.github.com/users/riham13/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/riham13/subscriptions","organizations_url":"https://api.github.com/users/riham13/orgs","repos_url":"https://api.github.com/users/riham13/repos","events_url":"https://api.github.com/users/riham13/events{/privacy}","received_events_url":"https://api.github.com/users/riham13/received_events","type":"User","site_admin":false},"labels":[{"id":530196374,"node_id":"MDU6TGFiZWw1MzAxOTYzNzQ=","url":"https://api.github.com/repos/ampproject/amphtml/labels/Category:%20Dynamic/Personalized%20Content","name":"Category: Dynamic/Personalized Content","color":"1d76db","default":false},{"id":530202281,"node_id":"MDU6TGFiZWw1MzAyMDIyODE=","url":"https://api.github.com/repos/ampproject/amphtml/labels/P2:%20Soon","name":"P2: Soon","color":"e99695","default":false},{"id":255304066,"node_id":"MDU6TGFiZWwyNTUzMDQwNjY=","url":"https://api.github.com/repos/ampproject/amphtml/labels/Type:%20Bug","name":"Type: Bug","color":"d4c5f9","default":false}],"state":"open","locked":false,"assignee":{"login":"choumx","id":20525523,"node_id":"MDQ6VXNlcjIwNTI1NTIz","avatar_url":"https://avatars1.githubusercontent.com/u/20525523?v=4","gravatar_id":"","url":"https://api.github.com/users/choumx","html_url":"https://github.com/choumx","followers_url":"https://api.github.com/users/choumx/followers","following_url":"https://api.github.com/users/choumx/following{/other_user}","gists_url":"https://api.github.com/users/choumx/gists{/gist_id}","starred_url":"https://api.github.com/users/choumx/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/choumx/subscriptions","organizations_url":"https://api.github.com/users/choumx/orgs","repos_url":"https://api.github.com/users/choumx/repos","events_url":"https://api.github.com/users/choumx/events{/privacy}","received_events_url":"https://api.github.com/users/choumx/received_events","type":"User","site_admin":false},"assignees":[{"login":"choumx","id":20525523,"node_id":"MDQ6VXNlcjIwNTI1NTIz","avatar_url":"https://avatars1.githubusercontent.com/u/20525523?v=4","gravatar_id":"","url":"https://api.github.com/users/choumx","html_url":"https://github.com/choumx","followers_url":"https://api.github.com/users/choumx/followers","following_url":"https://api.github.com/users/choumx/following{/other_user}","gists_url":"https://api.github.com/users/choumx/gists{/gist_id}","starred_url":"https://api.github.com/users/choumx/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/choumx/subscriptions","organizations_url":"https://api.github.com/users/choumx/orgs","repos_url":"https://api.github.com/users/choumx/repos","events_url":"https://api.github.com/users/choumx/events{/privacy}","received_events_url":"https://api.github.com/users/choumx/received_events","type":"User","site_admin":false}],"milestone":{"url":"https://api.github.com/repos/ampproject/amphtml/milestones/4","html_url":"https://github.com/ampproject/amphtml/milestone/4","labels_url":"https://api.github.com/repos/ampproject/amphtml/milestones/4/labels","id":1537240,"node_id":"MDk6TWlsZXN0b25lMTUzNzI0MA==","number":4,"title":"Backlog Bugs","description":"This milestone tracks all bugs opened for the projects that are not yet assigned to a sprint milestone. Bugs within this milestone will be fixed based on the priority of the issue. ","creator":{"login":"rudygalfi","id":3888212,"node_id":"MDQ6VXNlcjM4ODgyMTI=","avatar_url":"https://avatars3.githubusercontent.com/u/3888212?v=4","gravatar_id":"","url":"https://api.github.com/users/rudygalfi","html_url":"https://github.com/rudygalfi","followers_url":"https://api.github.com/users/rudygalfi/followers","following_url":"https://api.github.com/users/rudygalfi/following{/other_user}","gists_url":"https://api.github.com/users/rudygalfi/gists{/gist_id}","starred_url":"https://api.github.com/users/rudygalfi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rudygalfi/subscriptions","organizations_url":"https://api.github.com/users/rudygalfi/orgs","repos_url":"https://api.github.com/users/rudygalfi/repos","events_url":"https://api.github.com/users/rudygalfi/events{/privacy}","received_events_url":"https://api.github.com/users/rudygalfi/received_events","type":"User","site_admin":false},"open_issues":560,"closed_issues":981,"state":"open","created_at":"2016-01-22T23:51:53Z","updated_at":"2018-12-07T23:05:45Z","due_on":null,"closed_at":null},"comments":4,"created_at":"2018-12-04T08:29:42Z","updated_at":"2018-12-09T05:20:20Z","closed_at":null,"author_association":"NONE","body":"We are using AMP.setState to add (show) another input filed or change tab with button.\r\n\r\nEverything working fine in localhost, when we uploaded the files in server its not working properly.\r\n\r\nSometimes its work on first load, but not after refreshing the page.\r\nSometimes its work after refreshing the page, sometimes not.\r\n\r\nWe check the state at console by printing AMP.printState() and adding development=1 in the url.\r\nThe state are changing but DOM are not changing.\r\n\r\nWe tested the pages in different servers. \r\nHere i include the links of the pages.\r\n\r\nLink 1) https://amptest.grameenphone.com/\r\nIn this page, there is a button \"Add Another\", in the right side of the banner. Click or tap on this button should show another input field.\r\n\r\nLink 2) https://amptest.grameenphone.com/personal/plans-offers/offers\r\nIn this page, try to twich the tabs. \r\n(Some tab names are \"Internet\", \"Voice\", \"Device\")\r\n\r\n## If its working on your browser, please refresh the page 2-3 times then try again."},"comment":{"url":"https://api.github.com/repos/ampproject/amphtml/issues/comments/445512119","html_url":"https://github.com/ampproject/amphtml/issues/19615#issuecomment-445512119","issue_url":"https://api.github.com/repos/ampproject/amphtml/issues/19615","id":445512119,"node_id":"MDEyOklzc3VlQ29tbWVudDQ0NTUxMjExOQ==","user":{"login":"riham13","id":5393773,"node_id":"MDQ6VXNlcjUzOTM3NzM=","avatar_url":"https://avatars0.githubusercontent.com/u/5393773?v=4","gravatar_id":"","url":"https://api.github.com/users/riham13","html_url":"https://github.com/riham13","followers_url":"https://api.github.com/users/riham13/followers","following_url":"https://api.github.com/users/riham13/following{/other_user}","gists_url":"https://api.github.com/users/riham13/gists{/gist_id}","starred_url":"https://api.github.com/users/riham13/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/riham13/subscriptions","organizations_url":"https://api.github.com/users/riham13/orgs","repos_url":"https://api.github.com/users/riham13/repos","events_url":"https://api.github.com/users/riham13/events{/privacy}","received_events_url":"https://api.github.com/users/riham13/received_events","type":"User","site_admin":false},"created_at":"2018-12-09T05:20:20Z","updated_at":"2018-12-09T05:20:20Z","author_association":"NONE","body":"> Thanks Ali. Looks like the DOM scan sometimes doesn't pick up the bindings in the `form`. I'll investigate this soon.\r\n\r\nHey guys, thanks for taking the time to review this. Is there anything we can do from our side to find the issue?"}}
{"actor":{"display_login":"riham13"}}