Skip to content
This repository has been archived by the owner on Mar 28, 2023. It is now read-only.

multiple isolated pages within one bootstrapping instance #473

Open
x1B opened this issue Jul 24, 2017 · 0 comments
Open

multiple isolated pages within one bootstrapping instance #473

x1B opened this issue Jul 24, 2017 · 0 comments

Comments

@x1B
Copy link
Member

x1B commented Jul 24, 2017

We'd like to add a new API to instantiate individual pages without having to load a flow (but still allowing to run a flow side-by-side).

The new API should be available as laxar.bootstrap( ... ).page( ref, domContainer ), and support chaining of .flow(), .bootstrap() or other .page() calls.

To allow for this feature, we need to do (at least) the following:

  • make sure IDs (widgets / event bus subscribers, axId) are generated without conflict if e.g. the same page is instantiated twice,
  • isolate begin/endLifecycle events (and probably also the initial didChangeLocale) across pages, by having a dedicated "event bus view" for each page, which uses some kind of "source token" with each event to determine its isolation context,
  • for this, we need to mangle the bootstrapping item IDs into the generated widget IDs.
@x1B x1B added this to the v2.1.0 milestone Jul 24, 2017
@x1B x1B removed this from the v2.1.0 milestone Nov 28, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

1 participant