{"version":"1.0","type":"rich","title":"Dispatch multiple actions from ngrx effect","description":"This example demonstrates an NgRx effect that dispatches multiple actions in response to a single search action. The effect listens for `SearchActions.SEARCH` and, when triggered, uses `switchMap` to transform the incoming action into an array containing two new actions: `FetchPanel1Data` and `FetchPanel2Data`, each carrying the original query payload. The code shows how RxJS operators and NgRx Effects can batch related side-effect dispatches, though it does not include the actual data-fetching logic or rendering—only the action emission pattern is visible.","provider_name":"VizHub AI Studio","provider_url":"https://next.vizhub.com","html":"<iframe src=\"https://next.vizhub.com/viz/gist-e1e726434de724cf7b09169c058d4b41?mode=embed\" width=\"960\" height=\"500\" scrolling=\"no\" frameborder=\"1\"></iframe>","width":960,"height":500,"cache_age":3600}