{"action":"created","issue":{"url":"https://api.github.com/repos/ngxs/store/issues/395","repository_url":"https://api.github.com/repos/ngxs/store","labels_url":"https://api.github.com/repos/ngxs/store/issues/395/labels{/name}","comments_url":"https://api.github.com/repos/ngxs/store/issues/395/comments","events_url":"https://api.github.com/repos/ngxs/store/issues/395/events","html_url":"https://github.com/ngxs/store/issues/395","id":326144281,"number":395,"title":"Actions dispatched from within another action triggers multiple calls in the inner action call","user":{"login":"sanjeev-roughshod","id":19728941,"avatar_url":"https://avatars1.githubusercontent.com/u/19728941?v=4","gravatar_id":"","url":"https://api.github.com/users/sanjeev-roughshod","html_url":"https://github.com/sanjeev-roughshod","followers_url":"https://api.github.com/users/sanjeev-roughshod/followers","following_url":"https://api.github.com/users/sanjeev-roughshod/following{/other_user}","gists_url":"https://api.github.com/users/sanjeev-roughshod/gists{/gist_id}","starred_url":"https://api.github.com/users/sanjeev-roughshod/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sanjeev-roughshod/subscriptions","organizations_url":"https://api.github.com/users/sanjeev-roughshod/orgs","repos_url":"https://api.github.com/users/sanjeev-roughshod/repos","events_url":"https://api.github.com/users/sanjeev-roughshod/events{/privacy}","received_events_url":"https://api.github.com/users/sanjeev-roughshod/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2018-05-24T14:19:59Z","updated_at":"2018-05-25T15:14:18Z","closed_at":null,"author_association":"NONE","body":" @Action(InitializeCoreState)\r\n    initializeCoreState(ctx: StateContext<any>, action: InitializeCoreState) {\r\n        ctx.dispatch(new SetConfig(action.payload)); // this action is triggered twice\r\n    }\r\n\r\nWhen I dispatch InitializeCoreState action from components/services, it calls SetConfig action twice because it is nested under the InitializeCoreState action."},"comment":{"url":"https://api.github.com/repos/ngxs/store/issues/comments/392089929","html_url":"https://github.com/ngxs/store/issues/395#issuecomment-392089929","issue_url":"https://api.github.com/repos/ngxs/store/issues/395","id":392089929,"user":{"login":"sanjeev-roughshod","id":19728941,"avatar_url":"https://avatars1.githubusercontent.com/u/19728941?v=4","gravatar_id":"","url":"https://api.github.com/users/sanjeev-roughshod","html_url":"https://github.com/sanjeev-roughshod","followers_url":"https://api.github.com/users/sanjeev-roughshod/followers","following_url":"https://api.github.com/users/sanjeev-roughshod/following{/other_user}","gists_url":"https://api.github.com/users/sanjeev-roughshod/gists{/gist_id}","starred_url":"https://api.github.com/users/sanjeev-roughshod/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sanjeev-roughshod/subscriptions","organizations_url":"https://api.github.com/users/sanjeev-roughshod/orgs","repos_url":"https://api.github.com/users/sanjeev-roughshod/repos","events_url":"https://api.github.com/users/sanjeev-roughshod/events{/privacy}","received_events_url":"https://api.github.com/users/sanjeev-roughshod/received_events","type":"User","site_admin":false},"created_at":"2018-05-25T15:14:18Z","updated_at":"2018-05-25T15:14:18Z","author_association":"NONE","body":"@markwhitfeld Here's the demo \r\nhttps://stackblitz.com/edit/ngxs-simple-6fqip4\r\nAlso, please read my comment in the app.module.\r\nI am using the NGXS 3.0.1 version."}}
{"actor":{"display_login":"sanjeev-roughshod"}}