LearnNewsExamplesServices
Frontmatter
id4140
titleLazy loaded forms are acting differently in dist/production
stateClosed
labels
bughelp wantedstale
assignees[]
createdAtFeb 23, 2023, 4:56 PM
updatedAtSep 12, 2024, 4:29 AM
githubUrlhttps://github.com/neomjs/neo/issues/4140
authortobiu
commentsCount2
parentIssuenull
subIssues[]
subIssuesCompleted0
subIssuesTotal0
blockedBy[]
blocking[]
closedAtSep 12, 2024, 4:29 AM

Lazy loaded forms are acting differently in dist/production

Closed v8.1.0 bughelp wantedstale
tobiu
tobiu commented on Feb 23, 2023, 4:56 PM

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

tobiu added the bug label on Feb 23, 2023, 4:56 PM
tobiu added the help wanted label on Feb 23, 2023, 4:56 PM