Can I prefetch data in my subscriptions extension app?

Can I prefetch data in my subscriptions extension app?

tables25
Shopify Partner
4 0 2
I have my app extensions for the subscription app defined as follows in the code below. Is there any way I can prefetch data from my backend here before the component is loaded? I can do it in the component itself but that makes the UI not as good.


// Your extension must render all four modes
extend(
"Admin::Product::SubscriptionPlan::Add",

render(() => <Add />)
);
extend(
"Admin::Product::SubscriptionPlan::Create",
render(() => <Create />)
);
extend(
"Admin::Product::SubscriptionPlan::Remove",
render(() => <Remove />)
);
extend(
"Admin::Product::SubscriptionPlan::Edit",
render(() => <Edit />)
);
Replies 0 (0)