Out now! Check out the Poll results: Do you have a Shopify store?
Our Partner & Developer boards on the community are moving to a brand new home: the .dev community forums! While you can still access past discussions here, for all your future app and storefront building questions, head over to the new forums.

How can I make sure a function is ran only once when it's installed for the 1st time in a store?

How can I make sure a function is ran only once when it's installed for the 1st time in a store?

Wakil_eFoli
Shopify Partner
47 2 6

I've some functions to create metafield definitions that I want them to run only once when the app is being installed for the 1st time in a store and then run some other functions when the app is being uninstalled.

How can I do that? TIA. 

Reply 1 (1)

Wakil_eFoli
Shopify Partner
47 2 6

For your information I'm using an Remix App.