question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Implement `@Chunk`

See original GitHub issue

As described in https://github.com/vaadin/flow/issues/5339 we should be able to produce chunks per each view.

Acceptance criteria

  • Each route should produce a different frontend/my-view.js file
  • User should be able to merge multiple views in one chunk
  • User should be able to disable chunking
  • webpack frontend/generated-flow-imports.js should import all those fragments.
  • theme stuff should be in the frontend/generated-flow-imports.js file
  • frontend/generated-flow-imports.js should not load any chunk, but have a function reference so as server can do it
  • previously to visit a new view, it’s corresponding chunk should be loaded
  • Documentation about customizing chunks should be updated
  • Validate implementation in bakery

Issue Analytics

  • State:open
  • Created 4 years ago
  • Reactions:8
  • Comments:11 (8 by maintainers)

github_iconTop GitHub Comments

1reaction
ScriptedAlchemycommented, May 30, 2020

If you need any info on module federation, let me know 😃

1reaction
Legiothcommented, Apr 25, 2019

I would like to suggest one addition, unless it’s already implemented to deal with #5509: All @JsImport annotations that are on the classpath but not reachable through any @Chunk should be included in a special fallback chunk, which is automatically loaded if that @JsImport is actually encountered.

What this means in practice is that any omissions wouldn’t cause a broken application, but only that the end user has to download an additional chunk that might be larger than necessary.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Spring Batch - Tasklets vs Chunks - Baeldung
Learn about the two ways to implement jobs in Spring Batch: tasklets and chunks.
Read more >
How Do I Chunk Content to Increase Learning?
Dividing your course content into manageable chunks helps students learn more ... Also, be sure to use regular formative assessment strategies such as...
Read more >
Custom chunk implementation - filepond - Stack Overflow
I am trying to fit Filepond's chunk implementation to a third party upload endpoint that I don't have control over.
Read more >
nltk.chunk package
RegexpChunkParser is an implementation of the chunk parser interface that uses regular-expressions over tags to chunk a text. Its parse() method first ...
Read more >
Implementing ChunkDownloader Ingame
ChunkDownloader is a patching solution for Unreal Engine. It downloads assets from a remote service and mounts them in memory for use in...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found