neomjs / neo

The application worker driven frontend framework
https://neomjs.com
MIT License
2.88k stars 163 forks source link

Lazy loaded forms are acting differently in dist/production #4140

Closed tobiu closed 1 month ago

tobiu commented 1 year ago

Inside the dev mode: https://neomjs.github.io/pages/node_modules/neo.mjs/apps/form/

clicking the "validate all pages" button will fetch the missing modules in parallel:

Screenshot 2023-02-23 at 16 33 44

inside the webpack based output, they do get fetched one by one: https://neomjs.github.io/pages/node_modules/neo.mjs/dist/production/apps/form/

Screenshot 2023-02-23 at 16 33 55

not sure yet, if i am using Promise.all() in a way which webpack does not understand or if this might be a bug. sadly i am super short on time with my neo client-project MVP getting close. so, any help is appreciated :)

the related code is here: https://github.com/neomjs/neo/blob/dev/src/form/Container.mjs#L146

which triggers: https://github.com/neomjs/neo/blob/dev/src/layout/Card.mjs#L173

@sokra

github-actions[bot] commented 1 month ago

This issue is stale because it has been open for 90 days with no activity.

github-actions[bot] commented 1 month ago

This issue was closed because it has been inactive for 14 days since being marked as stale.