Skip to content

🐁 Provide demo-only hooks for demo switching #96

Open
@asvae

Description

@asvae

There are 2 cases we want to cover with this:

  • We need a hook for comoponent setup (in majority of cases only one hook is needed, as global state will be overriden and we don't need disassembly step).
  • Sometimes disassembly is still important. It might also prevent non destroyed component from erroring out.

Implementation wise

  • We probably want to postpone router navigation until previous page is destroyed, that way onCreate/onDestroy would work just fine.

// Not sure if needed

  • onDemoEnter - should always trigger after onDemoLeave of previously visited component.
  • onDemoLeave

Metadata

Metadata

Assignees

No one assigned

    Labels

    featureUseful to end user

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions