Hi Doug,
This is Jean-Charles from PayPal (jasisk).
Just following up on #2732, itself related to #2633. Really appreciate your time on this. This is a long one so grab a sandwich or something. 😀
So as I described in the express issue, we use the ephemeral app pattern (my term) all over the place. The pattern is quite simple:
- In our module, we create and export a new app instance.
- In the user’s app, they can mount the returned app instance from step 1 just like any other middleware / app.