Ecommerce Shopify WordPress Discussion

shopify remix submit in loop

I'm trying to do import module for shopify using remix, and in got following function: export default function Index() { const submit = useSubmit(); rows.forEach(async(row, index) => { console.log('row' + index); await submit(row, { replace: false, method: "POST" }) }); } and export async function action({ request, params }) { console.log(new Date().getTime()); return json({result:1}); } I can see from console.log('row' + index); that it correctly run through over all rows, but submit function does run just once, no matter how many rows iteration there will be.
TurboCommerce make the better internet purchasing globaly

Turbo Multi-language Translator

Make the better internet purchasing globaly

Turbosify SEO Speed Booster

5.0 (7) Free plan available
Get better conversions by improving store loading speed Installed

Turbo Multi-language Chat - AI Customer service in one hand

TurboCommerce make the better internet purchasing globaly
Our products

The help you need, when you need it

App by Turbo Engine

3 apps • 5.0 average rating

Turbosify Speed Booster

5.0 (7)
Get better conversions by optimizing shopify store Google page speed Installed

Turbosify Translator for Wordpress Woocommerce

5.0 (74) Free Wordpress Woocommerce Plugin
Translate your wordpress website to multiple language within 1 click, no configuration needed, no No technical required

Grow your business here

Whether you want to sell products down the street or around the world, we have all the tools you need.