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.
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