At the first sight the Query (QueryService) in Spartacus doesn't seem to accept any dynamic parameters. For instance fetching list of Orders but based on the dynamic parameter searchPhrase$.
The workaround is to configure a reloadOn event for the Query.
How to eaisly pass dynamic parameter to a Query (QueryService) in Spartacus?
22 views Asked by Krzysztof Platis At
1
You can use dynamic parameters in Spartacus Query (QueryService). It suffices to use RxJs
swtichMapfor example and switch from your dynamic parametersearchPhrase$to the call to the data service (connector). For example: