Hi there 👋
Thanks for reaching out! You are correct that there currently is not a react hook to allow you to easily create a MetaObject from a Checkout UI extension.
At this time the only way to do so would be to make a network request to your apps server which would in turn create the MetaObject.
Could you share your use case for creating a MetaOject from a Checkout UI extension so that I can share this information with the team?
Thank you for your answer, Lizk.
I have build a select box contains a lot of shop names in the checkout. The user can choose his desired shop name. I want to store the address data of the selected shop name in a metaobject, like this:
title: 'store name',
My workaround is now to save the data in the metafield in this structure:
And the BE can split this string into an Array.
But in the end the possibility to create a Metaobject would be fine.
Thanks a lot