Is there anyway to see previous / new values in an update action?
I am updating a value from a UI but would like to check the old value vs new value in the update.js action, is this possible please?
I can do this in a global action before firing the update but would be cool if there was some native functionality.
Thanks
Gadget assistant suggests code that doesn't appear to respond with methods that don't appear to exist.
2 Replies
Hello,
What you're looking for is record.changes/changed. Have a look at these docs:
https://docs.gadget.dev/guides/plugins/shopify/building-shopify-apps#webhook-infinite-loop-handling
Ah excellent, I thought the Assistant had done a made one. Thanks, ill take a look