{"action":"created","issue":{"url":"https://api.github.com/repos/Polymer/core-ajax/issues/102","labels_url":"https://api.github.com/repos/Polymer/core-ajax/issues/102/labels{/name}","comments_url":"https://api.github.com/repos/Polymer/core-ajax/issues/102/comments","events_url":"https://api.github.com/repos/Polymer/core-ajax/issues/102/events","html_url":"https://github.com/Polymer/core-ajax/issues/102","id":82927774,"number":102,"title":"iron-ajax with auto causes GET request before params computed","user":{"login":"danni","id":129472,"avatar_url":"https://avatars.githubusercontent.com/u/129472?v=3","gravatar_id":"","url":"https://api.github.com/users/danni","html_url":"https://github.com/danni","followers_url":"https://api.github.com/users/danni/followers","following_url":"https://api.github.com/users/danni/following{/other_user}","gists_url":"https://api.github.com/users/danni/gists{/gist_id}","starred_url":"https://api.github.com/users/danni/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/danni/subscriptions","organizations_url":"https://api.github.com/users/danni/orgs","repos_url":"https://api.github.com/users/danni/repos","events_url":"https://api.github.com/users/danni/events{/privacy}","received_events_url":"https://api.github.com/users/danni/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-05-30T22:11:32Z","updated_at":"2015-10-15T20:37:50Z","closed_at":null,"body":"Given code like so:\r\n\r\n    <iron-ajax id=\"myAjax\"\r\n               url=\"...\"\r\n               params=\"{{searchParams}}\"\r\n               last-response=\"{{ajaxResponse}}\"\r\n               auto>\r\n    </iron-ajax>\r\n\r\nWhere:\r\n\r\n        searchParams: {\r\n            type: String,\r\n            computed: '_searchParams(query)',\r\n        },\r\n\r\nThe app triggers an AJAX request without any value for .params`.\r\n\r\nThe workaround appears to be doing something like so:\r\n\r\n    _searchParams: function(q) {\r\n        /* setting this property to actually trigger an AJAX query */\r\n        this.$.myAjax.auto = true;\r\n        return {\r\n          q: q,\r\n        };\r\n    }\r\n\r\nThis seems wrong to me, as it causes a bogus request. Is it a bug or am I doing something non-obvious?"},"comment":{"url":"https://api.github.com/repos/Polymer/core-ajax/issues/comments/148513324","html_url":"https://github.com/Polymer/core-ajax/issues/102#issuecomment-148513324","issue_url":"https://api.github.com/repos/Polymer/core-ajax/issues/102","id":148513324,"user":{"login":"hubgit","id":14294,"avatar_url":"https://avatars.githubusercontent.com/u/14294?v=3","gravatar_id":"","url":"https://api.github.com/users/hubgit","html_url":"https://github.com/hubgit","followers_url":"https://api.github.com/users/hubgit/followers","following_url":"https://api.github.com/users/hubgit/following{/other_user}","gists_url":"https://api.github.com/users/hubgit/gists{/gist_id}","starred_url":"https://api.github.com/users/hubgit/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hubgit/subscriptions","organizations_url":"https://api.github.com/users/hubgit/orgs","repos_url":"https://api.github.com/users/hubgit/repos","events_url":"https://api.github.com/users/hubgit/events{/privacy}","received_events_url":"https://api.github.com/users/hubgit/received_events","type":"User","site_admin":false},"created_at":"2015-10-15T20:37:50Z","updated_at":"2015-10-15T20:37:50Z","body":"I'm not sure if this is still a problem, but using `params=\"{{_searchParams(query)}}\"` seems to work as expected."}}