Skip to content

Dynamic actions: How to add new actions at runtime? #533

Description

@jorgebucaran

Summary

There is currently no way to add actions dynamically.

  • Why do I want the ability to add actions at runtime? (Code splitting, etc.)
  • Why do I want code splitting?
    • But why do you even need code splitting? Why not instead consider making a simpler app? If you've reached this extreme situation, why not creating multiple apps? Those should definitely be "code-splittable" without intervention from the core.
    • Why not be aware that an SPA is no different from an actual app you'd download like from an "app store". What about implementing a one-time install screen?
  • What about route-based code splitting? I think this is what Elm plans to do for 0.19.
  • What would be the simplest, non-breaking way to add this functionality? How would it look like on a simple app?

Related

#439

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