Skip to content

Show an example of code splitting #15

Open
@SethDavenport

Description

@SethDavenport

The code is already organized into a lions module and an elephants module. In a larger app, we'd want to code split these such that needed code is only loaded when the relevant app route is activated. Redux introduces some challenges here but they're not insurmountable. How can we:

  • only load the elephants components, actions, and epics when the elephants route is accessed?
  • same thing for the lions stuff?
  • same thing for the feedback stuff?

Ideally we webpack would output code chunks for these routes and load them on the fly.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions