zaceno / hyperapp-nestable

Embed apps in other apps, as if they were components
MIT License
40 stars 8 forks source link

2.0? #10

Closed 11111000000 closed 4 years ago

zaceno commented 4 years ago

You mean a version compatible with hyperapp v2? Yeah I’ve been thinking about it and toying with some alternative approaches.

11111000000 commented 4 years ago

What approaches?

zaceno commented 4 years ago

Nothing solid yet. I'm not terribly invested in having stateful components in hyperapp any longer (it's too "against the grain", and I'd prefer to find more harmonious methods of modularization first) - so it's mostly out of academic curiosity I've experimented.

I've tried emulating lifecycle events, in order to use a similar design as hyperapp-nestable currently has. Also wrapping apps in custom elements, with subs/fx for intercom between custom elements. And I'm just now toying with the idea of keeping component state in the main state transparently, via middleware & HOF.

If I arrive at something that seems solid & dependable I'll make sure to publish a new 2.0.