Questions and discussions about using the Shopify CLI and Shopify-built libraries.
<ResourcePicker resourceType='Product' selectMultiple={true} open={resourcePickerProductActiveState} onSelection={handleResourcePickerProductSelection} onCancel={handleResourcePickerProductClose} initialQuery="query=vendor:Boeing" />
<ResourcePicker resourceType='Product' selectMultiple={true} open={resourcePickerProductActiveState} onSelection={handleResourcePickerProductSelection} onCancel={handleResourcePickerProductClose} initialQuery="vendor:Boeing" />
and both of them didn't work.
If anyone knows about this issue, please kindly reply to this thread. Thank you in advance!
Regards,
Aldo
Hi Aldo, the second example (the one with initialQuery="vendor:Boeing") should work.
I just created a new app and this is the syntax that worked for me.
To help us find the problem, can you please let me know:
To learn more visit the Shopify Help Center or the Community Blog.
Hi Joey,
Thanks for the reply.
Here the information that maybe benefit for the investigation
-> answer: it should be prepopulate the search bar in resource picker, but it did not. So the search bar still blank even I added "initialQuery" in "ResourcePicker"
-> the version is 3.1.1
-> Yes, the products being filtered as expected if I directly add the query in the search bar